pub enum DecodeError {
Framing(Error),
Io(Error),
Integrity {
position: u64,
reason: &'static str,
},
Unsupported {
position: u64,
feature: &'static str,
},
Poisoned,
}Expand description
A ZIP framing, payload, or member-projection failure.
Variants§
Framing(Error)
ZIP framing failed, including rejections by the selected DecodePolicy.
Io(Error)
Payload I/O failed.
Integrity
Member data did not agree with its declared metadata.
Unsupported
A member cannot be represented by this codec.
Poisoned
A prior error or interrupted operation invalidated the cursor.
Trait Implementations§
Source§impl Debug for DecodeError
impl Debug for DecodeError
Source§impl Display for DecodeError
impl Display for DecodeError
Source§impl Error for DecodeError
impl Error for DecodeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for DecodeError
impl From<Error> for DecodeError
Auto Trait Implementations§
impl !RefUnwindSafe for DecodeError
impl !UnwindSafe for DecodeError
impl Forget for DecodeError
impl Freeze for DecodeError
impl Move for DecodeError
impl Send for DecodeError
impl Sync for DecodeErrorwhere
Repr: Sync,
impl Unpin for DecodeError
impl UnsafeUnpin for DecodeErrorwhere
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
&'static str: UnsafeUnpin,
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