pub struct CryptParamsReencrypt {
pub mode: CryptReencryptModeInfo,
pub direction: CryptReencryptDirectionInfo,
pub resilience: String,
pub hash: String,
pub data_shift: u64,
pub max_hotzone_size: u64,
pub device_size: u64,
pub luks2: CryptParamsLuks2,
pub flags: CryptReencrypt,
}
Expand description
Parameters for reencryption operations
Fields§
§mode: CryptReencryptModeInfo
Type of reencryption operation
direction: CryptReencryptDirectionInfo
Start at beginning or end of disk
resilience: String
§hash: String
§data_shift: u64
§max_hotzone_size: u64
§device_size: u64
Size of the device
luks2: CryptParamsLuks2
LUKS2-specific parameters
flags: CryptReencrypt
Reencryption flags
Trait Implementations§
Source§impl<'a> TryInto<CryptParamsReencryptRef<'a>> for &'a CryptParamsReencrypt
impl<'a> TryInto<CryptParamsReencryptRef<'a>> for &'a CryptParamsReencrypt
Source§type Error = LibcryptErr
type Error = LibcryptErr
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for CryptParamsReencrypt
impl RefUnwindSafe for CryptParamsReencrypt
impl Send for CryptParamsReencrypt
impl Sync for CryptParamsReencrypt
impl Unpin for CryptParamsReencrypt
impl UnwindSafe for CryptParamsReencrypt
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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