[][src]Struct libcryptsetup_rs::CryptVolumeKey

pub struct CryptVolumeKey<'a> { /* fields omitted */ }

Handle for volume key operations

Implementations

impl<'a> CryptVolumeKey<'a>[src]

pub fn get(
    &mut self,
    keyslot: c_int,
    volume_key: &mut [u8],
    passphrase: &str
) -> Result<(c_int, size_t), LibcryptErr>
[src]

Get volume key from crypt device - first tuple element is key slot, second is volume key size

pub fn verify(&mut self, volume_key: &[u8]) -> Result<(), LibcryptErr>[src]

Verify that volume key is valid for crypt device

Auto Trait Implementations

impl<'a> RefUnwindSafe for CryptVolumeKey<'a>

impl<'a> !Send for CryptVolumeKey<'a>

impl<'a> !Sync for CryptVolumeKey<'a>

impl<'a> Unpin for CryptVolumeKey<'a>

impl<'a> !UnwindSafe for CryptVolumeKey<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.