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 dump_json(&mut self) -> Result<Value, LibcryptErr>
pub fn dump_json(&mut self) -> Result<Value, LibcryptErr>
Dump text info about device to JSON 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more