pub enum Error {
Show 19 variants
BadSignature([u8; 6]),
UnsupportedVersion {
major: u8,
minor: u8,
},
ChecksumVerificationFailed,
NextHeaderCrcMismatch,
Io(Error, Cow<'static, str>),
FileOpen(Error, String),
Other(Cow<'static, str>),
BadTerminatedStreamsInfo(u8),
BadTerminatedUnpackInfo,
BadTerminatedPackInfo(u8),
BadTerminatedSubStreamsInfo,
BadTerminatedHeader(u8),
ExternalUnsupported,
UnsupportedCompressionMethod(String),
MaxMemLimited {
max_kb: usize,
actaul_kb: usize,
},
PasswordRequired,
Unsupported(Cow<'static, str>),
MaybeBadPassword(Error),
FileNotFound,
}
Expand description
The error type of the crate.
Variants§
BadSignature([u8; 6])
Invalid 7z signature found in file header.
UnsupportedVersion
Unsupported 7z format version.
ChecksumVerificationFailed
Checksum verification failed during decompression.
NextHeaderCrcMismatch
Next header CRC mismatch.
Io(Error, Cow<'static, str>)
IO error with optional context message.
FileOpen(Error, String)
Error opening file.
Other(Cow<'static, str>)
Other error with description.
BadTerminatedStreamsInfo(u8)
Bad terminated streams info.
BadTerminatedUnpackInfo
Bad terminated unpack info.
BadTerminatedPackInfo(u8)
Bad terminated pack info.
BadTerminatedSubStreamsInfo
Bad terminated sub streams info.
BadTerminatedHeader(u8)
Bad terminated header.
ExternalUnsupported
External compression method not supported.
UnsupportedCompressionMethod(String)
Unsupported compression method.
MaxMemLimited
Memory limit exceeded.
PasswordRequired
Password required for encrypted archive.
Unsupported(Cow<'static, str>)
Feature or operation not supported.
MaybeBadPassword(Error)
Possibly bad password for encrypted content.
FileNotFound
File not found.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0 · 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 Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe 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