pub enum Error {
Io(Error),
Invalid {
position: u64,
reason: &'static str,
},
Unsupported {
position: u64,
feature: &'static str,
},
UnsupportedExtraField {
position: u64,
identifier: u16,
},
PolicyViolation {
position: u64,
violation: IndexPolicyViolation,
},
Limit(LimitExceeded),
}Expand description
A failure while reading or writing ZIP records.
Variants§
Io(Error)
An input operation failed.
Invalid
Record structure or redundant information was inconsistent.
Fields
Unsupported
The archive uses an excluded feature.
UnsupportedExtraField
A member header contains an extra field that the reader does not support.
Fields
PolicyViolation
A supported feature was rejected by the index policy.
Fields
§
violation: IndexPolicyViolationThe policy rule that rejected the feature.
Limit(LimitExceeded)
A configured resource budget was exceeded.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<BudgetError> for Error
impl From<BudgetError> for Error
Source§fn from(error: BudgetError) -> Self
fn from(error: BudgetError) -> Self
Converts to this type from the input type.
Source§impl From<LimitExceeded> for Error
impl From<LimitExceeded> for Error
Source§fn from(source: LimitExceeded) -> Self
fn from(source: LimitExceeded) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Forget for Error
impl Freeze for Error
impl Move for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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