[−][src]Struct libcryptsetup_rs::CryptWipe
Handle for volume key operations
Implementations
impl<'a> CryptWipe<'a>
[src]
pub fn wipe<T>(
&mut self,
dev_path: &Path,
pattern: CryptWipePattern,
offset: u64,
length: u64,
wipe_block_size: size_t,
wipe_no_direct_io: bool,
callback: Option<unsafe extern "C" fn(size: u64, offset: u64, usrptr: *mut c_void) -> c_int>,
usrptr: Option<&mut T>
) -> Result<(), LibcryptErr>
[src]
&mut self,
dev_path: &Path,
pattern: CryptWipePattern,
offset: u64,
length: u64,
wipe_block_size: size_t,
wipe_no_direct_io: bool,
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> RefUnwindSafe for CryptWipe<'a>
impl<'a> !Send for CryptWipe<'a>
impl<'a> !Sync for CryptWipe<'a>
impl<'a> Unpin for CryptWipe<'a>
impl<'a> !UnwindSafe for CryptWipe<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,