pub struct LogicalImage { /* private fields */ }Expand description
An opened logical file container: its entry list plus the backend reader.
Implementations§
Source§impl LogicalImage
impl LogicalImage
Sourcepub fn format(&self) -> ContainerFormat
pub fn format(&self) -> ContainerFormat
The logical container format that was opened.
Sourcepub fn entries(&self) -> &[LogicalEntry]
pub fn entries(&self) -> &[LogicalEntry]
The file tree: one LogicalEntry per captured file/directory, in the
order the backend records them. Index into this slice for
Self::read_file.
Sourcepub fn read_file(&mut self, index: usize) -> Result<Vec<u8>, LogicalError>
pub fn read_file(&mut self, index: usize) -> Result<Vec<u8>, LogicalError>
Read the full content of the file at index in Self::entries.
§Errors
LogicalError::NoSuchEntry if index is out of range,
LogicalError::IsDirectory for a directory entry, or the backend’s
LogicalError::Ad1 / LogicalError::Aff4 on a read fault.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for LogicalImage
impl !Sync for LogicalImage
impl !UnwindSafe for LogicalImage
impl Freeze for LogicalImage
impl Send for LogicalImage
impl Unpin for LogicalImage
impl UnsafeUnpin for LogicalImage
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