pub struct EwfRecover { /* private fields */ }Expand description
Read-only-safe tolerant EWF recovery.
Construct with from_path (auto-discovers multi-segment
siblings) or from_paths, then call
recover_to_raw to emit a recovered flat image.
Implementations§
Source§impl EwfRecover
impl EwfRecover
Sourcepub fn from_path(path: impl AsRef<Path>) -> Self
pub fn from_path(path: impl AsRef<Path>) -> Self
Recover from a single segment or an auto-discovered multi-segment image.
If path matches the EWF numbered-segment pattern (E01, E02, …) the
consecutive siblings in the same directory are discovered and included.
Sourcepub fn from_paths(paths: &[impl AsRef<Path>]) -> Self
pub fn from_paths(paths: &[impl AsRef<Path>]) -> Self
Recover from an explicit ordered list of segment paths.
Sourcepub fn recover_to_raw(
&self,
out_path: impl AsRef<Path>,
) -> Result<RecoveryReport>
pub fn recover_to_raw( &self, out_path: impl AsRef<Path>, ) -> Result<RecoveryReport>
Recover the image to a flat raw file at out_path, returning the
RecoveryReport.
The source is never modified; out_path must differ from every source
segment (a caller-provided NEW path). Unreadable chunks are zero-filled so
the output always spans the full logical image.
§Errors
Returns io::Error if a segment cannot be opened/mapped, if the image
is too corrupt to establish geometry (no parseable volume section — a
bootstrap failure, surfaced loudly rather than as a silent empty result),
or if the output file cannot be written.
Auto Trait Implementations§
impl Freeze for EwfRecover
impl RefUnwindSafe for EwfRecover
impl Send for EwfRecover
impl Sync for EwfRecover
impl Unpin for EwfRecover
impl UnsafeUnpin for EwfRecover
impl UnwindSafe for EwfRecover
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
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>
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>
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