Struct linux_uapi::x86_64::fscrypt_policy_v2
source · #[repr(C)]pub struct fscrypt_policy_v2 {
pub version: __u8,
pub contents_encryption_mode: __u8,
pub filenames_encryption_mode: __u8,
pub flags: __u8,
pub __reserved: [__u8; 4],
pub master_key_identifier: [__u8; 16],
}
Fields§
§version: __u8
§contents_encryption_mode: __u8
§filenames_encryption_mode: __u8
§flags: __u8
§__reserved: [__u8; 4]
§master_key_identifier: [__u8; 16]
Trait Implementations§
source§impl Clone for fscrypt_policy_v2
impl Clone for fscrypt_policy_v2
source§fn clone(&self) -> fscrypt_policy_v2
fn clone(&self) -> fscrypt_policy_v2
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 fscrypt_policy_v2
impl Debug for fscrypt_policy_v2
source§impl Default for fscrypt_policy_v2
impl Default for fscrypt_policy_v2
source§fn default() -> fscrypt_policy_v2
fn default() -> fscrypt_policy_v2
Returns the “default value” for a type. Read more
source§impl FromBytes for fscrypt_policy_v2
impl FromBytes for fscrypt_policy_v2
§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized + NoCell,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized + NoCell,
Interprets the prefix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized + NoCell,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized + NoCell,
Interprets the suffix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + IntoBytes + NoCell,
fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + IntoBytes + NoCell,
Interprets the prefix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + IntoBytes + NoCell,
fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + IntoBytes + NoCell,
Interprets the suffix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
source§impl FromZeros for fscrypt_policy_v2
impl FromZeros for fscrypt_policy_v2
source§impl IntoBytes for fscrypt_policy_v2
impl IntoBytes for fscrypt_policy_v2
impl Copy for fscrypt_policy_v2
Auto Trait Implementations§
impl Freeze for fscrypt_policy_v2
impl RefUnwindSafe for fscrypt_policy_v2
impl Send for fscrypt_policy_v2
impl Sync for fscrypt_policy_v2
impl Unpin for fscrypt_policy_v2
impl UnwindSafe for fscrypt_policy_v2
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