Struct libcryptsetup_rs::CryptParamsTcrypt
source · [−]pub struct CryptParamsTcrypt {
pub passphrase: Option<Vec<u8>>,
pub keyfiles: Option<Vec<PathBuf>>,
pub hash_name: String,
pub cipher: String,
pub mode: String,
pub key_size: usize,
pub flags: CryptTcrypt,
pub veracrypt_pim: u32,
}Expand description
Parameters for tcrypt operations
Fields
passphrase: Option<Vec<u8>>keyfiles: Option<Vec<PathBuf>>hash_name: Stringcipher: Stringmode: Stringkey_size: usizeflags: CryptTcryptveracrypt_pim: u32Trait Implementations
sourceimpl<'a> TryFrom<&'a crypt_params_tcrypt> for CryptParamsTcrypt
impl<'a> TryFrom<&'a crypt_params_tcrypt> for CryptParamsTcrypt
type Error = LibcryptErr
type Error = LibcryptErr
The type returned in the event of a conversion error.
sourcefn try_from(v: &'a crypt_params_tcrypt) -> Result<Self, Self::Error>
fn try_from(v: &'a crypt_params_tcrypt) -> Result<Self, Self::Error>
Performs the conversion.
sourceimpl<'a> TryInto<CryptParamsTcryptRef<'a>> for &'a CryptParamsTcrypt
impl<'a> TryInto<CryptParamsTcryptRef<'a>> for &'a CryptParamsTcrypt
type Error = LibcryptErr
type Error = LibcryptErr
The type returned in the event of a conversion error.
sourcefn try_into(self) -> Result<CryptParamsTcryptRef<'a>, Self::Error>
fn try_into(self) -> Result<CryptParamsTcryptRef<'a>, Self::Error>
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for CryptParamsTcrypt
impl Send for CryptParamsTcrypt
impl Sync for CryptParamsTcrypt
impl Unpin for CryptParamsTcrypt
impl UnwindSafe for CryptParamsTcrypt
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more