#[non_exhaustive]pub enum Event {
NewPacket(Packet),
NewStream(Stream),
MoreDataNeeded(usize),
Continue,
Eof,
}Expand description
Events processed by a demuxer analyzing a source.
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.
NewPacket(Packet)
A new packet is found by a demuxer.
NewStream(Stream)
A new stream is found by a demuxer.
MoreDataNeeded(usize)
More data are needed by a demuxer to complete its operations.
Continue
Event not processable by a demuxer.
Demux the next event.
Eof
End of File.
Stop demuxing data.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl !RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl !UnwindSafe for Event
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