Struct libcryptsetup_rs::CryptParamsPlain
source · [−]pub struct CryptParamsPlain {
pub hash: String,
pub offset: u64,
pub sector_size: u32,
pub size: u64,
pub skip: u64,
}
Expand description
Struct representing plain cryptsetup format parameters
Fields
hash: String
Password hash function
offset: u64
Offset in sectors
sector_size: u32
Sector size in bytes
size: u64
Size of mapped device
skip: u64
IV offset
Trait Implementations
sourceimpl<'a> TryFrom<&'a crypt_params_plain> for CryptParamsPlain
impl<'a> TryFrom<&'a crypt_params_plain> for CryptParamsPlain
type Error = LibcryptErr
type Error = LibcryptErr
The type returned in the event of a conversion error.
sourcefn try_from(v: &'a crypt_params_plain) -> Result<Self, Self::Error>
fn try_from(v: &'a crypt_params_plain) -> Result<Self, Self::Error>
Performs the conversion.
sourceimpl<'a> TryInto<CryptParamsPlainRef<'a>> for &'a CryptParamsPlain
impl<'a> TryInto<CryptParamsPlainRef<'a>> for &'a CryptParamsPlain
type Error = LibcryptErr
type Error = LibcryptErr
The type returned in the event of a conversion error.
sourcefn try_into(self) -> Result<CryptParamsPlainRef<'a>, Self::Error>
fn try_into(self) -> Result<CryptParamsPlainRef<'a>, Self::Error>
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for CryptParamsPlain
impl Send for CryptParamsPlain
impl Sync for CryptParamsPlain
impl Unpin for CryptParamsPlain
impl UnwindSafe for CryptParamsPlain
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