#[non_exhaustive]pub enum Status {
NeedsInput,
NeedsOutput,
Done,
}Expand description
Where a streaming engine stopped.
§Examples
use compress_lib::deflate::{Inflater, Status};
let mut out = [0u8; 8];
let p = Inflater::new().decompress(&[0xCB, 0x48], &mut out)?;
assert_eq!(p.status, Status::NeedsInput);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.
NeedsInput
All input was consumed and the stream goes on: call again with more.
NeedsOutput
The output buffer is full: call again with more room and the input not yet consumed.
Done
The stream (or, for encoders, the requested flush) is complete.
Trait Implementations§
impl Copy for Status
impl Eq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Forget for Status
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnsafeUnpin for Status
impl UnwindSafe for Status
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