pub struct ExtractionError { /* private fields */ }Expand description
An extraction failure with optional bounded recovery location evidence.
Implementations§
Source§impl ExtractionError
impl ExtractionError
Sourcepub fn kind(&self) -> ExtractionErrorKind
pub fn kind(&self) -> ExtractionErrorKind
Returns the stable failure category.
Sourcepub fn residue_path(&self) -> Option<&Path>
pub fn residue_path(&self) -> Option<&Path>
Returns the private-root residue location, when there is one.
The path has two proven meanings, and a caller must not read them as one:
- On the
extractfailure path, the owned root was emptied and the leftover directory was verified empty before the path was recorded. - On the explicit-cleanup failure path, the owned root could not be fully emptied. The residue may be partially emptied, its emptiness is not guaranteed, and the caller must inspect the directory itself.
The path is advisory: if the root was renamed or replaced by a third party, the crate emptied the owned object and left whatever occupies the recorded pathname untouched.
Trait Implementations§
Source§impl Debug for ExtractionError
impl Debug for ExtractionError
Source§impl Display for ExtractionError
impl Display for ExtractionError
Source§impl Error for ExtractionError
impl Error for ExtractionError
1.30.0 · 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 Freeze for ExtractionError
impl RefUnwindSafe for ExtractionError
impl Send for ExtractionError
impl Sync for ExtractionError
impl Unpin for ExtractionError
impl UnsafeUnpin for ExtractionError
impl UnwindSafe for ExtractionError
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