pub enum ReadState {
NeedsWrite(usize),
Read(usize),
Eof,
}
Expand description
State returned by Decoder::read
Variants§
NeedsWrite(usize)
Not enough data has been written to the underlying Decoder
in order to allow the next block to be decoded. Call
Decoder::write
to write more data. If the end of the file
has been reached, call Decoder::write
with an empty buffer.
Read(usize)
N. number of data has been read
Eof
The end of the compressed file has been reached and there is no more data to read
Auto Trait Implementations§
impl Freeze for ReadState
impl RefUnwindSafe for ReadState
impl Send for ReadState
impl Sync for ReadState
impl Unpin for ReadState
impl UnwindSafe for ReadState
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