Struct linux_uapi::x86_64::fsverity_descriptor
source · #[repr(C)]pub struct fsverity_descriptor {
pub version: __u8,
pub hash_algorithm: __u8,
pub log_blocksize: __u8,
pub salt_size: __u8,
pub __reserved_0x04: __le32,
pub data_size: __le64,
pub root_hash: [__u8; 64],
pub salt: [__u8; 32],
pub __reserved: [__u8; 144],
}
Fields§
§version: __u8
§hash_algorithm: __u8
§log_blocksize: __u8
§salt_size: __u8
§__reserved_0x04: __le32
§data_size: __le64
§root_hash: [__u8; 64]
§salt: [__u8; 32]
§__reserved: [__u8; 144]
Trait Implementations§
source§impl Clone for fsverity_descriptor
impl Clone for fsverity_descriptor
source§fn clone(&self) -> fsverity_descriptor
fn clone(&self) -> fsverity_descriptor
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 fsverity_descriptor
impl Debug for fsverity_descriptor
source§impl Default for fsverity_descriptor
impl Default for fsverity_descriptor
source§impl FromBytes for fsverity_descriptor
impl FromBytes for fsverity_descriptor
§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 fsverity_descriptor
impl FromZeros for fsverity_descriptor
source§impl IntoBytes for fsverity_descriptor
impl IntoBytes for fsverity_descriptor
impl Copy for fsverity_descriptor
Auto Trait Implementations§
impl Freeze for fsverity_descriptor
impl RefUnwindSafe for fsverity_descriptor
impl Send for fsverity_descriptor
impl Sync for fsverity_descriptor
impl Unpin for fsverity_descriptor
impl UnwindSafe for fsverity_descriptor
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