Struct libcryptsetup_rs::consts::vals::KeyslotsSize
source · pub struct KeyslotsSize(/* private fields */);Expand description
Size in bytes for the keyslots.
The value must be divisible by a 4KB block and no larger than 128MB.
Methods from Deref<Target = u64>§
pub const MIN: u64 = 0u64
pub const MAX: u64 = 18_446_744_073_709_551_615u64
pub const BITS: u32 = 64u32
Trait Implementations§
source§impl Clone for KeyslotsSize
impl Clone for KeyslotsSize
source§fn clone(&self) -> KeyslotsSize
fn clone(&self) -> KeyslotsSize
Returns a copy of the value. Read more
1.0.0 · 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 KeyslotsSize
impl Debug for KeyslotsSize
source§impl Deref for KeyslotsSize
impl Deref for KeyslotsSize
source§impl PartialEq<KeyslotsSize> for KeyslotsSize
impl PartialEq<KeyslotsSize> for KeyslotsSize
source§fn eq(&self, other: &KeyslotsSize) -> bool
fn eq(&self, other: &KeyslotsSize) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<u64> for KeyslotsSize
impl TryFrom<u64> for KeyslotsSize
impl Copy for KeyslotsSize
impl Eq for KeyslotsSize
impl StructuralEq for KeyslotsSize
impl StructuralPartialEq for KeyslotsSize
Auto Trait Implementations§
impl RefUnwindSafe for KeyslotsSize
impl Send for KeyslotsSize
impl Sync for KeyslotsSize
impl Unpin for KeyslotsSize
impl UnwindSafe for KeyslotsSize
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