pub struct Wire(pub Kind);Expand description
LOC 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 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.Source§fn decode(&self, frame: Frame) -> Result<Vec<Frame>, Self::Error>
fn decode(&self, frame: Frame) -> Result<Vec<Frame>, Self::Error>
Decode one moq-lite frame read from a group into media frames. Read more
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 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 decode_order(&self) -> bool
fn decode_order(&self) -> bool
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