pub struct CryptDeviceStatusHandle<'a> { /* private fields */ }
Expand description
Handle for crypt device status operations
Implementations§
source§impl<'a> CryptDeviceStatusHandle<'a>
impl<'a> CryptDeviceStatusHandle<'a>
sourcepub fn dump(&mut self) -> Result<(), LibcryptErr>
pub fn dump(&mut self) -> Result<(), LibcryptErr>
Dump text info about device to log output
sourcepub fn get_cipher(&mut self) -> Result<String, LibcryptErr>
pub fn get_cipher(&mut self) -> Result<String, LibcryptErr>
Get cipher used by device
sourcepub fn get_cipher_mode(&mut self) -> Result<String, LibcryptErr>
pub fn get_cipher_mode(&mut self) -> Result<String, LibcryptErr>
Get cipher mode used by device
sourcepub fn get_uuid(&mut self) -> Result<Uuid, LibcryptErr>
pub fn get_uuid(&mut self) -> Result<Uuid, LibcryptErr>
Get device UUID
sourcepub fn get_device_path(&mut self) -> Result<&Path, LibcryptErr>
pub fn get_device_path(&mut self) -> Result<&Path, LibcryptErr>
Get path to underlying device
sourcepub fn get_metadata_device_path(&mut self) -> Result<Option<&Path>, LibcryptErr>
pub fn get_metadata_device_path(&mut self) -> Result<Option<&Path>, LibcryptErr>
Get path to detached metadata device or None
if it is attached
sourcepub fn get_data_offset(&mut self) -> u64
pub fn get_data_offset(&mut self) -> u64
Get offset in 512-byte sectors where real data starts
sourcepub fn get_iv_offset(&mut self) -> u64
pub fn get_iv_offset(&mut self) -> u64
Get IV location offset in 512-byte sectors
sourcepub fn get_volume_key_size(&mut self) -> c_int
pub fn get_volume_key_size(&mut self) -> c_int
Get size in bytes of volume key
sourcepub fn get_verity_info(&mut self) -> Result<CryptParamsVerity, LibcryptErr>
pub fn get_verity_info(&mut self) -> Result<CryptParamsVerity, LibcryptErr>
Get Verity device parameters
sourcepub fn get_integrity_info(
&mut self
) -> Result<CryptParamsIntegrity, LibcryptErr>
pub fn get_integrity_info( &mut self ) -> Result<CryptParamsIntegrity, LibcryptErr>
Get Integrity device parameters
Auto Trait Implementations§
impl<'a> Freeze for CryptDeviceStatusHandle<'a>
impl<'a> RefUnwindSafe for CryptDeviceStatusHandle<'a>
impl<'a> !Send for CryptDeviceStatusHandle<'a>
impl<'a> !Sync for CryptDeviceStatusHandle<'a>
impl<'a> Unpin for CryptDeviceStatusHandle<'a>
impl<'a> !UnwindSafe for CryptDeviceStatusHandle<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more