pub struct Demuxer { /* private fields */ }Expand description
Sans-IO demuxer: push_bytes → poll_frame.
Implementations§
Source§impl Demuxer
impl Demuxer
Sourcepub fn push_bytes(&mut self, chunk: &[u8])
pub fn push_bytes(&mut self, chunk: &[u8])
Feed container bytes (sans-io; caller owns I/O).
Sourcepub fn streams(&self) -> &[TrackInfo]
pub fn streams(&self) -> &[TrackInfo]
Tracks discovered so far (populated once Tracks has been parsed).
Sourcepub fn poll_frame(&mut self) -> Option<Frame>
pub fn poll_frame(&mut self) -> Option<Frame>
Next demuxed frame, if any.
Sourcepub fn cues(&self) -> &[CuePoint]
pub fn cues(&self) -> &[CuePoint]
Segment\Cues entries parsed so far — informational seek index; this
crate does not seek (sans-io: seeking is the I/O adapter’s job).
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Demuxer
impl RefUnwindSafe for Demuxer
impl Send for Demuxer
impl Sync for Demuxer
impl Unpin for Demuxer
impl UnsafeUnpin for Demuxer
impl UnwindSafe for Demuxer
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