pub enum SquashfsError {
Show 25 variants
NullInput(NulError),
Utf8(FromUtf8Error),
OsUtf8(OsString),
LibraryError(String, LibError),
UnknownLibraryError(String, i32),
LibraryReturnError(String),
LibraryNullError(String),
LinkChain(i32),
LinkLoop(PathBuf),
DanglingLink(PathBuf, PathBuf),
WrongType(String, String, String),
Copy,
NoPath,
Range(u64, u64),
Read(Error),
Unsupported(String),
Mmap(Error),
Time(SystemTimeError),
Empty,
WriteOrder(u32),
WriteType(FileType),
WrappedError(Box<dyn Error + Send + Sync>),
Xattr(PathBuf, Error),
Finished,
Internal(String),
}
Expand description
Errors encountered while reading or writing an archive.
This wraps all errors that might be encountered by the library during its normal course of operation.
Variants§
NullInput(NulError)
Utf8(FromUtf8Error)
OsUtf8(OsString)
LibraryError(String, LibError)
UnknownLibraryError(String, i32)
LibraryReturnError(String)
LibraryNullError(String)
LinkChain(i32)
LinkLoop(PathBuf)
DanglingLink(PathBuf, PathBuf)
WrongType(String, String, String)
Copy
NoPath
Range(u64, u64)
Read(Error)
Unsupported(String)
Mmap(Error)
Time(SystemTimeError)
Empty
WriteOrder(u32)
WriteType(FileType)
WrappedError(Box<dyn Error + Send + Sync>)
Xattr(PathBuf, Error)
Finished
Internal(String)
Trait Implementations§
Source§impl Debug for SquashfsError
impl Debug for SquashfsError
Source§impl Display for SquashfsError
impl Display for SquashfsError
Source§impl Error for SquashfsError
impl Error for SquashfsError
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<Error> for SquashfsError
impl From<Error> for SquashfsError
Source§impl From<FromUtf8Error> for SquashfsError
impl From<FromUtf8Error> for SquashfsError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<NulError> for SquashfsError
impl From<NulError> for SquashfsError
Source§impl From<SystemTimeError> for SquashfsError
impl From<SystemTimeError> for SquashfsError
Source§fn from(source: SystemTimeError) -> Self
fn from(source: SystemTimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SquashfsError
impl !RefUnwindSafe for SquashfsError
impl Send for SquashfsError
impl Sync for SquashfsError
impl Unpin for SquashfsError
impl !UnwindSafe for SquashfsError
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