pub struct Wire { /* private fields */ }Expand description
CMAF container: encodes/decodes a single track’s moof+mdat fragments.
Build from a CMAF init segment with Wire::from_init, which refuses a track that is
neither audio nor video.
The parsed track is heap-allocated so that embedding Wire
in other enums (e.g. catalog::hang::Wire)
doesn’t bloat unrelated variants.
Implementations§
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 decode_order(&self) -> bool
fn decode_order(&self) -> bool
Source§fn writable(&self) -> Result<(), Self::Error>
fn writable(&self) -> Result<(), Self::Error>
Refuse a format this build can read but not write, before a producer is built for it. Read more
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