pub enum DecoderEvent {
Header(BcpHeader),
Block(Block),
}Expand description
Events emitted by the streaming decoder.
The stream yields a Header event first (once the 8-byte file
header has been read and validated), then a sequence of Block
events for each decoded block, terminating when the END sentinel
is encountered.
Header(BcpHeader)
Block(Block)
Block(Block)
Block(Block)
... (stream ends at END sentinel)Variants§
Header(BcpHeader)
The file header has been parsed and validated.
Block(Block)
A block has been fully decoded.
Trait Implementations§
Source§impl Clone for DecoderEvent
impl Clone for DecoderEvent
Source§fn clone(&self) -> DecoderEvent
fn clone(&self) -> DecoderEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DecoderEvent
impl RefUnwindSafe for DecoderEvent
impl Send for DecoderEvent
impl Sync for DecoderEvent
impl Unpin for DecoderEvent
impl UnsafeUnpin for DecoderEvent
impl UnwindSafe for DecoderEvent
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