Struct CryptDeviceStatusHandle

Source
pub struct CryptDeviceStatusHandle<'a> { /* private fields */ }
Expand description

Handle for crypt device status operations

Implementations§

Source§

impl<'a> CryptDeviceStatusHandle<'a>

Source

pub fn dump(&mut self) -> Result<(), LibcryptErr>

Dump text info about device to log output

Source

pub fn dump_json(&mut self) -> Result<Value, LibcryptErr>

Dump text info about device to JSON output

Source

pub fn get_cipher(&mut self) -> Result<String, LibcryptErr>

Get cipher used by device

Source

pub fn get_cipher_mode(&mut self) -> Result<String, LibcryptErr>

Get cipher mode used by device

Source

pub fn get_uuid(&mut self) -> Result<Uuid, LibcryptErr>

Get device UUID

Source

pub fn get_device_path(&mut self) -> Result<&Path, LibcryptErr>

Get path to underlying device

Source

pub fn get_metadata_device_path(&mut self) -> Result<Option<&Path>, LibcryptErr>

Get path to detached metadata device or None if it is attached

Source

pub fn get_data_offset(&mut self) -> u64

Get offset in 512-byte sectors where real data starts

Source

pub fn get_iv_offset(&mut self) -> u64

Get IV location offset in 512-byte sectors

Source

pub fn get_volume_key_size(&mut self) -> c_int

Get size in bytes of volume key

Source

pub fn get_verity_info(&mut self) -> Result<CryptParamsVerity, LibcryptErr>

Get Verity device parameters

Source

pub fn get_integrity_info( &mut self, ) -> Result<CryptParamsIntegrity, LibcryptErr>

Get Integrity device parameters

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.