pub struct Wire(pub Kind);Expand description
Raw hang wire format configured for the track’s media role.
Tuple Fields§
§0: KindThe kind of content carried by the track.
Trait Implementations§
Source§impl Container for Wire
impl Container for Wire
Source§type Error = Error
type Error = Error
Container-specific error. Must be convertible from [
moq_net::Error]
(so IO errors propagate), MissingKeyframe, InvalidEnd, and
TimestampRewind (so the producer can reject invalid group boundaries).Source§fn end(&self, frame: &Frame) -> Option<Timestamp>
fn end(&self, frame: &Frame) -> Option<Timestamp>
Return the endpoint timestamp when
frame carries empty-payload metadata. Read moreSource§fn decode_order(&self) -> bool
fn decode_order(&self) -> bool
Source§fn finish_group(
&self,
group: &mut Writer<'_>,
end: Option<Timestamp>,
) -> Result<(), Self::Error>
fn finish_group( &self, group: &mut Writer<'_>, end: Option<Timestamp>, ) -> Result<(), Self::Error>
Write any format-specific endpoint before the producer closes the group.
Source§fn check(&self, frame: &Frame) -> Result<(), Self::Error>
fn check(&self, frame: &Frame) -> Result<(), Self::Error>
Refuse a frame this format has no encoding for, by default any frame of an unwritable format. Read more
Source§fn write(
&self,
group: &mut Writer<'_>,
frames: &[Frame],
) -> Result<(), Self::Error>
fn write( &self, group: &mut Writer<'_>, frames: &[Frame], ) -> Result<(), Self::Error>
Encode one or more frames into moq-lite frames written to
group, whose first frame
creates it on the track.Auto Trait Implementations§
impl Freeze for Wire
impl RefUnwindSafe for Wire
impl Send for Wire
impl Sync for Wire
impl Unpin for Wire
impl UnsafeUnpin for Wire
impl UnwindSafe for Wire
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more