pub enum EwfError {
Io(Error),
InvalidSignature,
BufferTooShort {
needed: usize,
actual: usize,
},
NoSegments(String),
Unsupported(String),
Aborted,
Malformed(String),
}Expand description
Error type used by EWF readers, writers, and probe helpers.
Variants§
Io(Error)
An underlying operating-system or stream I/O operation failed.
InvalidSignature
The input does not start with a recognized EWF file signature.
BufferTooShort
A caller-provided buffer was too short for the requested operation.
Fields
NoSegments(String)
No segment files were found or supplied.
Unsupported(String)
The image uses a valid EWF feature that this crate does not support.
Aborted
The operation was cancelled after an abort signal.
Malformed(String)
The image or supplied chunk data is structurally invalid.
Trait Implementations§
Source§impl Error for EwfError
impl Error for EwfError
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 !RefUnwindSafe for EwfError
impl !UnwindSafe for EwfError
impl Freeze for EwfError
impl Send for EwfError
impl Sync for EwfError
impl Unpin for EwfError
impl UnsafeUnpin for EwfError
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