pub enum DecompressionError<E> {
Bad,
Load(E),
}Expand description
Decompression errors can be malformed data or the error from the FutureFn
Variants§
Bad
The data is malformed or you kept calling drain after Bad occurred
Load(E)
The error from the FutureFn
Trait Implementations§
Source§impl<E: Clone> Clone for DecompressionError<E>
impl<E: Clone> Clone for DecompressionError<E>
Source§fn clone(&self) -> DecompressionError<E>
fn clone(&self) -> DecompressionError<E>
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 moreSource§impl<E: Debug> Debug for DecompressionError<E>
impl<E: Debug> Debug for DecompressionError<E>
Source§impl<E> From<E> for DecompressionError<E>
impl<E> From<E> for DecompressionError<E>
impl<E: Copy> Copy for DecompressionError<E>
Auto Trait Implementations§
impl<E> Freeze for DecompressionError<E>where
E: Freeze,
impl<E> RefUnwindSafe for DecompressionError<E>where
E: RefUnwindSafe,
impl<E> Send for DecompressionError<E>where
E: Send,
impl<E> Sync for DecompressionError<E>where
E: Sync,
impl<E> Unpin for DecompressionError<E>where
E: Unpin,
impl<E> UnwindSafe for DecompressionError<E>where
E: UnwindSafe,
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