[][src]Struct libcryptsetup_rs::CryptWipe

pub struct CryptWipe<'a> { /* fields omitted */ }

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.