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: CryptTcryptFlags,
pub veracrypt_pim: u32,
}
Expand description
Parameters for tcrypt operations
Fields
passphrase: Option<Vec<u8>>
keyfiles: Option<Vec<PathBuf>>
hash_name: String
cipher: String
mode: String
key_size: usize
flags: CryptTcryptFlags
veracrypt_pim: u32
Trait 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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more