pub enum ChunkResult {
Ok(Bytes),
Err(Error),
InsufficientData,
OnEof,
AlreadyEof,
Corrupted,
}Variants§
Ok(Bytes)
non empty chunk data produced by coder.
Err(Error)
io error type produced by coder that can be bubbled up to upstream caller.
InsufficientData
insufficient data. More input bytes required.
OnEof
coder reached EOF state and no more chunk can be produced.
AlreadyEof
coder already reached EOF state and no more chunk can be produced. used to hint calling stop filling input buffer with more data and/or calling method again.
Corrupted
Trait Implementations§
Source§impl Debug for ChunkResult
impl Debug for ChunkResult
Source§impl Display for ChunkResult
impl Display for ChunkResult
Auto Trait Implementations§
impl !Freeze for ChunkResult
impl !RefUnwindSafe for ChunkResult
impl Send for ChunkResult
impl Sync for ChunkResult
impl Unpin for ChunkResult
impl !UnwindSafe for ChunkResult
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