#[non_exhaustive]pub enum DemuxEvent {
Need,
Headers,
Packet(Packet),
ConfigChanged {
track: u32,
epoch: u32,
},
Seeked(SeekResult),
Done,
}Expand description
What one demuxer step produced.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Need
Satisfy one of requested() and step again.
Headers
Demuxer::tracks is populated.
Packet(Packet)
One packet; Packet::track says whose.
ConfigChanged
A track’s codec configuration changed; packets that follow carry the
new epoch. Decoders get configure before the next packet.
Seeked(SeekResult)
A pending seek is positioned; packets resume there.
Done
No more packets.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DemuxEvent
impl RefUnwindSafe for DemuxEvent
impl Send for DemuxEvent
impl Sync for DemuxEvent
impl Unpin for DemuxEvent
impl UnsafeUnpin for DemuxEvent
impl UnwindSafe for DemuxEvent
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