pub enum ShredError {
Io(Error),
Cli(String),
Entropy(String),
InvalidPath(String),
Obfuscation(String),
}Expand description
The primary error taxonomy for the sys-shred ecosystem.
Every potential failure point, from low-level filesystem I/O to high-level cryptographic entropy exhaustion, is represented here.
Variants§
Io(Error)
Errors originating from the underlying Operating System’s file operations. This includes permission issues, missing files, or hardware failures.
Cli(String)
Errors encountered during the parsing or validation of Command Line Arguments.
Entropy(String)
Errors related to the failure of cryptographic random number generation. Critical for ensuring the integrity of the overwriting process.
InvalidPath(String)
Errors triggered when a target path is logically invalid (e.g., pointing to a directory when a file is expected) or otherwise inaccessible.
Obfuscation(String)
Errors occurring during the filename randomization or metadata scrubbing phase.
Trait Implementations§
Source§impl Debug for ShredError
impl Debug for ShredError
Source§impl Display for ShredError
impl Display for ShredError
Source§impl Error for ShredError
impl Error for ShredError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for ShredError
impl !UnwindSafe for ShredError
impl Freeze for ShredError
impl Send for ShredError
impl Sync for ShredError
impl Unpin for ShredError
impl UnsafeUnpin for ShredError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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