pub enum LogicalError {
Io(Error),
NotLogical(ContainerFormat, String),
Ad1(Ad1Error),
Aff4(Aff4Error),
Dar(DarError),
NoSuchEntry(usize),
IsDirectory(String),
}Expand description
Failure opening or reading a logical container.
Variants§
Io(Error)
I/O failure opening or reading the file.
NotLogical(ContainerFormat, String)
The file is not a logical container this module handles (e.g. it is a raw
disk image or a physical AFF4 — open those with
crate::container::open). The message names the sniffed format.
Ad1(Ad1Error)
An AD1 read failed (corrupt structure, encrypted image, I/O).
Aff4(Aff4Error)
An AFF4-Logical read failed.
Dar(DarError)
A DAR read failed.
NoSuchEntry(usize)
LogicalImage::read_file was given an out-of-range entry index.
IsDirectory(String)
LogicalImage::read_file was asked to read a directory entry.
Trait Implementations§
Source§impl Debug for LogicalError
impl Debug for LogicalError
Source§impl Display for LogicalError
impl Display for LogicalError
Source§impl Error for LogicalError
impl Error for LogicalError
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<Ad1Error> for LogicalError
impl From<Ad1Error> for LogicalError
Source§impl From<Aff4Error> for LogicalError
impl From<Aff4Error> for LogicalError
Source§impl From<DarError> for LogicalError
impl From<DarError> for LogicalError
Auto Trait Implementations§
impl !RefUnwindSafe for LogicalError
impl !UnwindSafe for LogicalError
impl Freeze for LogicalError
impl Send for LogicalError
impl Sync for LogicalError
impl Unpin for LogicalError
impl UnsafeUnpin for LogicalError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more