pub enum EncodeError {
Framing(Error),
Io(Error),
Compression,
Overflow,
InvalidLink,
Limit(LimitExceeded),
Finished,
}Expand description
A failure while encoding ZIP records or payloads.
Variants§
Framing(Error)
Metadata could not be represented in ZIP.
Io(Error)
Writing, seeking, or flushing the output failed.
Compression
A compressor failed or made no progress.
Overflow
Output arithmetic exceeded the ZIP64 range.
InvalidLink
A symbolic-link target cannot be represented safely.
Limit(LimitExceeded)
A resource budget was exceeded.
Finished
The writer has already emitted its directory and terminators.
Trait Implementations§
Source§impl Debug for EncodeError
impl Debug for EncodeError
Source§impl Display for EncodeError
impl Display for EncodeError
Source§impl Error for EncodeError
impl Error for EncodeError
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 EncodeError
impl From<BudgetError> for EncodeError
Source§fn from(error: BudgetError) -> Self
fn from(error: BudgetError) -> Self
Converts to this type from the input type.
Source§impl From<EncodeError> for BuildError<EncodeError>
impl From<EncodeError> for BuildError<EncodeError>
Source§fn from(error: EncodeError) -> Self
fn from(error: EncodeError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for EncodeError
impl From<Error> for EncodeError
Source§impl From<Error> for EncodeError
impl From<Error> for EncodeError
Source§impl From<LimitExceeded> for EncodeError
impl From<LimitExceeded> for EncodeError
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 EncodeError
impl !UnwindSafe for EncodeError
impl Forget for EncodeError
impl Freeze for EncodeError
impl Move for EncodeError
impl Send for EncodeError
impl Sync for EncodeError
impl Unpin for EncodeError
impl UnsafeUnpin for EncodeError
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