Struct libcryptsetup_rs::CryptDevice
source · [−]pub struct CryptDevice { /* private fields */ }
Expand description
Data type that is a handle for a crypt device
Implementations
sourceimpl CryptDevice
impl CryptDevice
sourcepub fn from_ptr(ptr: *mut crypt_device) -> Self
pub fn from_ptr(ptr: *mut crypt_device) -> Self
Reconstruct a CryptDevice
object from a pointer
sourcepub fn logging_handle(&mut self) -> CryptLog<'_>
pub fn logging_handle(&mut self) -> CryptLog<'_>
Get a logging option handle
sourcepub fn settings_handle(&mut self) -> CryptSettings<'_>
pub fn settings_handle(&mut self) -> CryptSettings<'_>
Get a settings option handle
sourcepub fn format_handle(&mut self) -> CryptFormat<'_>
pub fn format_handle(&mut self) -> CryptFormat<'_>
Get a format option handle
sourcepub fn context_handle(&mut self) -> CryptContext<'_>
pub fn context_handle(&mut self) -> CryptContext<'_>
Get a context option handle
sourcepub fn keyslot_handle(&mut self) -> CryptKeyslot<'_>
pub fn keyslot_handle(&mut self) -> CryptKeyslot<'_>
Get a keyslot option handle
sourcepub fn runtime_handle<'a>(&'a mut self, name: &'a str) -> CryptRuntime<'a>
pub fn runtime_handle<'a>(&'a mut self, name: &'a str) -> CryptRuntime<'a>
Get a runtime attribute option handle
sourcepub fn luks2_flag_handle<T>(&mut self) -> CryptLuks2Flags<'_, T>
pub fn luks2_flag_handle<T>(&mut self) -> CryptLuks2Flags<'_, T>
Get LUKS2 flags option handle
sourcepub fn activate_handle(&mut self) -> CryptActivation<'_>
pub fn activate_handle(&mut self) -> CryptActivation<'_>
Get activation option handle
sourcepub fn volume_key_handle(&mut self) -> CryptVolumeKey<'_>
pub fn volume_key_handle(&mut self) -> CryptVolumeKey<'_>
Get volume key option handle
sourcepub fn status_handle(&mut self) -> CryptDeviceStatus<'_>
pub fn status_handle(&mut self) -> CryptDeviceStatus<'_>
Get crypt device status option handle
sourcepub fn backup_handle(&mut self) -> CryptBackup<'_>
pub fn backup_handle(&mut self) -> CryptBackup<'_>
Get crypt device backup option handle
sourcepub fn debug_handle() -> CryptDebug
pub fn debug_handle() -> CryptDebug
Get crypt debug option handle
sourcepub fn keyfile_handle(&mut self) -> CryptKeyfile<'_>
pub fn keyfile_handle(&mut self) -> CryptKeyfile<'_>
Get crypt device keyfile option handle
sourcepub fn wipe_handle(&mut self) -> CryptWipe<'_>
pub fn wipe_handle(&mut self) -> CryptWipe<'_>
Get crypt device wipe option handle
sourcepub fn token_handle(&mut self) -> CryptLuks2Token<'_>
pub fn token_handle(&mut self) -> CryptLuks2Token<'_>
Get crypt device LUKS2 token option handle
sourcepub fn reencrypt_handle(&mut self) -> CryptLuks2Reencrypt<'_>
pub fn reencrypt_handle(&mut self) -> CryptLuks2Reencrypt<'_>
Get crypt device reencryption option handle
sourcepub 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>
)
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>
)
Set the callback that prompts the user to confirm an action
sourcepub fn set_data_device(&mut self, device_path: &Path) -> Result<(), LibcryptErr>
pub fn set_data_device(&mut self, device_path: &Path) -> Result<(), LibcryptErr>
Set the device path for a data device
sourcepub fn set_data_offset(&mut self, offset: u64) -> Result<(), LibcryptErr>
pub fn set_data_offset(&mut self, offset: u64) -> Result<(), LibcryptErr>
Set the offset in 4096-byte sectors for the data section on a device
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CryptDevice
impl !Send for CryptDevice
impl !Sync for CryptDevice
impl Unpin for CryptDevice
impl UnwindSafe for CryptDevice
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more