pub enum SitError {
InvalidSignature,
UnsupportedVersion(u16),
Io(Error),
Decompression(String),
Compression(String),
Malformed,
EncryptedArchive,
IncorrectPassword,
}Expand description
Errors that can occur when working with StuffIt archives.
Variants§
InvalidSignature
The file does not have a valid StuffIt signature.
UnsupportedVersion(u16)
The archive uses an unsupported version.
Io(Error)
An I/O error occurred while reading or writing.
Decompression(String)
Decompression failed.
Compression(String)
Compression failed.
Malformed
The archive structure is malformed.
EncryptedArchive
The archive or entry is encrypted and requires a password.
IncorrectPassword
The provided password is incorrect.
Trait Implementations§
Source§impl Error for SitError
impl Error for SitError
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 SitError
impl !RefUnwindSafe for SitError
impl Send for SitError
impl Sync for SitError
impl Unpin for SitError
impl !UnwindSafe for SitError
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