pub struct Luks2Segment {
pub id: String,
pub offset: u64,
pub encryption: String,
pub sector_size: usize,
pub iv_tweak: u128,
}Expand description
A LUKS2 data segment.
Fields§
§id: StringSegment id.
offset: u64Byte offset of the encrypted data.
encryption: StringCipher (e.g. aes-xts-plain64).
sector_size: usizeEncryption sector size (512 or 4096).
iv_tweak: u128IV tweak base added to the plain64 sector number.
Trait Implementations§
Source§impl Clone for Luks2Segment
impl Clone for Luks2Segment
Source§fn clone(&self) -> Luks2Segment
fn clone(&self) -> Luks2Segment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Luks2Segment
impl Debug for Luks2Segment
impl Eq for Luks2Segment
Source§impl PartialEq for Luks2Segment
impl PartialEq for Luks2Segment
impl StructuralPartialEq for Luks2Segment
Auto Trait Implementations§
impl Freeze for Luks2Segment
impl RefUnwindSafe for Luks2Segment
impl Send for Luks2Segment
impl Sync for Luks2Segment
impl Unpin for Luks2Segment
impl UnsafeUnpin for Luks2Segment
impl UnwindSafe for Luks2Segment
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