pub struct CryptWipeHandle<'a> { /* private fields */ }
Expand description
Handle for volume key operations
Implementations§
Source§impl<'a> CryptWipeHandle<'a>
impl<'a> CryptWipeHandle<'a>
Sourcepub fn wipe<T>(
&mut self,
dev_path: &Path,
pattern: CryptWipePattern,
offset: u64,
length: u64,
wipe_block_size: size_t,
flags: CryptWipe,
callback: Option<unsafe extern "C" fn(size: u64, offset: u64, usrptr: *mut c_void) -> c_int>,
usrptr: Option<&mut T>,
) -> Result<(), LibcryptErr>
pub fn wipe<T>( &mut self, dev_path: &Path, pattern: CryptWipePattern, offset: u64, length: u64, wipe_block_size: size_t, flags: CryptWipe, callback: Option<unsafe extern "C" fn(size: u64, offset: u64, usrptr: *mut c_void) -> c_int>, usrptr: Option<&mut T>, ) -> Result<(), LibcryptErr>
Wipe a device with the selected pattern
Auto Trait Implementations§
impl<'a> Freeze for CryptWipeHandle<'a>
impl<'a> RefUnwindSafe for CryptWipeHandle<'a>
impl<'a> !Send for CryptWipeHandle<'a>
impl<'a> !Sync for CryptWipeHandle<'a>
impl<'a> Unpin for CryptWipeHandle<'a>
impl<'a> !UnwindSafe for CryptWipeHandle<'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
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