pub struct Overwriter<'a> { /* private fields */ }Expand description
A specialized engine for performing secure cryptographic overwrites on a file.
Implementations§
Source§impl<'a> Overwriter<'a>
impl<'a> Overwriter<'a>
Sourcepub fn new(file: &'a mut File, verify: bool, cancelled: Arc<AtomicBool>) -> Self
pub fn new(file: &'a mut File, verify: bool, cancelled: Arc<AtomicBool>) -> Self
Creates a new Overwriter for a specific file handle.
Sourcepub fn execute(&mut self, method: ShredMethod, passes: u32) -> ShredResult<()>
pub fn execute(&mut self, method: ShredMethod, passes: u32) -> ShredResult<()>
Executes the full destruction sequence based on the selected method.
Auto Trait Implementations§
impl<'a> !UnwindSafe for Overwriter<'a>
impl<'a> Freeze for Overwriter<'a>
impl<'a> RefUnwindSafe for Overwriter<'a>
impl<'a> Send for Overwriter<'a>
impl<'a> Sync for Overwriter<'a>
impl<'a> Unpin for Overwriter<'a>
impl<'a> UnsafeUnpin for Overwriter<'a>
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
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>
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