[−][src]Struct libcryptsetup_rs::CryptDevice
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]
&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
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
impl RefUnwindSafe for CryptDevice
impl !Send for CryptDevice
impl !Sync for CryptDevice
impl Unpin for CryptDevice
impl UnwindSafe for CryptDevice
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>,