Struct linux_uapi::x86_64::fscrypt_policy_v1
source · #[repr(C)]pub struct fscrypt_policy_v1 {
pub version: __u8,
pub contents_encryption_mode: __u8,
pub filenames_encryption_mode: __u8,
pub flags: __u8,
pub master_key_descriptor: [__u8; 8],
}
Fields§
§version: __u8
§contents_encryption_mode: __u8
§filenames_encryption_mode: __u8
§flags: __u8
§master_key_descriptor: [__u8; 8]
Trait Implementations§
source§impl Clone for fscrypt_policy_v1
impl Clone for fscrypt_policy_v1
source§fn clone(&self) -> fscrypt_policy_v1
fn clone(&self) -> fscrypt_policy_v1
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_v1
impl Debug for fscrypt_policy_v1
source§impl Default for fscrypt_policy_v1
impl Default for fscrypt_policy_v1
source§fn default() -> fscrypt_policy_v1
fn default() -> fscrypt_policy_v1
Returns the “default value” for a type. Read more
source§impl FromBytes for fscrypt_policy_v1
impl FromBytes for fscrypt_policy_v1
§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_v1
impl FromZeros for fscrypt_policy_v1
source§impl IntoBytes for fscrypt_policy_v1
impl IntoBytes for fscrypt_policy_v1
impl Copy for fscrypt_policy_v1
Auto Trait Implementations§
impl Freeze for fscrypt_policy_v1
impl RefUnwindSafe for fscrypt_policy_v1
impl Send for fscrypt_policy_v1
impl Sync for fscrypt_policy_v1
impl Unpin for fscrypt_policy_v1
impl UnwindSafe for fscrypt_policy_v1
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