[][src]Struct libcryptsetup_rs::CryptLuks2Reencrypt

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

Handle for reencryption operations

Implementations

impl<'a> CryptLuks2Reencrypt<'a>[src]

pub fn reencrypt_init_by_passphrase(
    &mut self,
    name: Option<&str>,
    passphrase: &[u8],
    keyslot_old: c_int,
    keyslot_new: c_int,
    cipher_and_mode: (&str, &str),
    params: CryptParamsReencrypt
) -> Result<c_int, LibcryptErr>
[src]

Initialize reencryption metadata on a device by passphrase

pub fn reecrypt_init_by_keyring(
    &mut self,
    name: Option<&str>,
    key_description: &str,
    keyslot_old: c_int,
    keyslot_new: c_int,
    cipher_and_mode: (&str, &str),
    params: CryptParamsReencrypt
) -> Result<c_int, LibcryptErr>
[src]

Initialize reencryption metadata on a device by passphrase in a keyring

pub fn reencrypt(
    &mut self,
    progress: Option<unsafe extern "C" fn(size: u64, offset: u64, _: *mut c_void) -> c_int>
) -> Result<(), LibcryptErr>
[src]

Run data reencryption

pub fn status(
    &mut self,
    params: CryptParamsReencrypt
) -> Result<CryptReencryptInfo, LibcryptErr>
[src]

LUKS2 reencryption status

Auto Trait Implementations

impl<'a> RefUnwindSafe for CryptLuks2Reencrypt<'a>

impl<'a> !Send for CryptLuks2Reencrypt<'a>

impl<'a> !Sync for CryptLuks2Reencrypt<'a>

impl<'a> Unpin for CryptLuks2Reencrypt<'a>

impl<'a> !UnwindSafe for CryptLuks2Reencrypt<'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.