#[non_exhaustive]pub enum PeelOutcome {
NotPacked,
Peeled {
format: Format,
inner: Vec<u8>,
},
}Expand description
The result of attempting to peel one bare-compression layer.
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.
NotPacked
Not a bare compression wrapper — pass it through unchanged.
Peeled
A bare gzip/bzip2 wrapper peeled to its inner byte stream. A consumer
re-runs detection on inner to continue down the stack.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PeelOutcome
impl RefUnwindSafe for PeelOutcome
impl Send for PeelOutcome
impl Sync for PeelOutcome
impl Unpin for PeelOutcome
impl UnsafeUnpin for PeelOutcome
impl UnwindSafe for PeelOutcome
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