pub enum ZipError {
Io(Error),
FieldTooLong {
field: &'static str,
len: usize,
max: usize,
},
Poisoned(String),
InvalidState(String),
}Expand description
Errors that can occur when creating a ZIP archive.
Variants§
Io(Error)
An underlying I/O error occurred.
FieldTooLong
A filename or extra field exceeds the maximum allowed length.
Fields
Poisoned(String)
The archive is in an inconsistent state because a previous entry was dropped without being properly closed.
InvalidState(String)
The archive writer is in a state that does not allow the requested operation.
Trait Implementations§
Source§impl Error for ZipError
impl Error for ZipError
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()
Auto Trait Implementations§
impl Freeze for ZipError
impl !RefUnwindSafe for ZipError
impl Send for ZipError
impl Sync for ZipError
impl Unpin for ZipError
impl UnsafeUnpin for ZipError
impl !UnwindSafe for ZipError
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