[][src]Struct libcryptsetup_rs::CryptDevice

pub struct CryptDevice { /* fields omitted */ }

Data type that is a handle for a crypt device

Implementations

impl CryptDevice[src]

pub fn from_ptr(ptr: *mut crypt_device) -> Self[src]

Reconstruct a CryptDevice object from a pointer

pub fn logging_handle(&mut self) -> CryptLog[src]

Get a logging option handle

pub fn settings_handle(&mut self) -> CryptSettings[src]

Get a settings option handle

pub fn format_handle(&mut self) -> CryptFormat[src]

Get a format option handle

pub fn context_handle(&mut self) -> CryptContext[src]

Get a context option handle

pub fn keyslot_handle(&mut self) -> CryptKeyslot[src]

Get a keyslot option handle

pub fn runtime_handle<'a>(&'a mut self, name: &'a str) -> CryptRuntime<'a>[src]

Get a runtime attribute option handle

pub fn luks2_flag_handle<T>(&mut self) -> CryptLuks2Flags<T>[src]

Get LUKS2 flags option handle

pub fn activate_handle(&mut self) -> CryptActivation[src]

Get activation option handle

pub fn volume_key_handle(&mut self) -> CryptVolumeKey[src]

Get volume key option handle

pub fn status_handle(&mut self) -> CryptDeviceStatus[src]

Get crypt device status option handle

pub fn backup_handle(&mut self) -> CryptBackup[src]

Get crypt device backup option handle

pub fn debug_handle() -> CryptDebug[src]

Get crypt debug option handle

pub fn keyfile_handle(&mut self) -> CryptKeyfile[src]

Get crypt device keyfile option handle

pub fn wipe_handle(&mut self) -> CryptWipe[src]

Get crypt device wipe option handle

pub fn token_handle(&mut self) -> CryptLuks2Token[src]

Get crypt device LUKS2 token option handle

pub fn reencrypt_handle(&mut self) -> CryptLuks2Reencrypt[src]

Get crypt device reencryption option handle

pub fn set_confirm_callback<T>(
    &mut self,
    confirm: Option<unsafe extern "C" fn(msg: *const c_char, usrptr: *mut c_void) -> c_int>,
    usrdata: Option<&mut T>
)
[src]

Set the callback that prompts the user to confirm an action

pub fn set_data_device(&mut self, device_path: &Path) -> Result<(), LibcryptErr>[src]

Set the device path for a data device

pub fn set_data_offset(&mut self, offset: u64) -> Result<(), LibcryptErr>[src]

Set the offset in 4096-byte sectors for the data section on a device

Trait Implementations

impl Drop for CryptDevice[src]

Auto Trait Implementations

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.