Struct linux_uapi::x86_64::loop_info
source · #[repr(C)]pub struct loop_info {Show 14 fields
pub lo_number: c_int,
pub __bindgen_padding_0: [u8; 4],
pub lo_device: __kernel_old_dev_t,
pub lo_inode: c_ulong,
pub lo_rdevice: __kernel_old_dev_t,
pub lo_offset: c_int,
pub lo_encrypt_type: c_int,
pub lo_encrypt_key_size: c_int,
pub lo_flags: c_int,
pub lo_name: [c_char; 64],
pub lo_encrypt_key: [c_uchar; 32],
pub lo_init: [c_ulong; 2],
pub reserved: [c_char; 4],
pub __bindgen_padding_1: [u8; 4],
}
Fields§
§lo_number: c_int
§__bindgen_padding_0: [u8; 4]
§lo_device: __kernel_old_dev_t
§lo_inode: c_ulong
§lo_rdevice: __kernel_old_dev_t
§lo_offset: c_int
§lo_encrypt_type: c_int
§lo_encrypt_key_size: c_int
§lo_flags: c_int
§lo_name: [c_char; 64]
§lo_encrypt_key: [c_uchar; 32]
§lo_init: [c_ulong; 2]
§reserved: [c_char; 4]
§__bindgen_padding_1: [u8; 4]
Trait Implementations§
source§impl FromBytes for loop_info
impl FromBytes for loop_info
§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 IntoBytes for loop_info
impl IntoBytes for loop_info
impl Copy for loop_info
Auto Trait Implementations§
impl Freeze for loop_info
impl RefUnwindSafe for loop_info
impl Send for loop_info
impl Sync for loop_info
impl Unpin for loop_info
impl UnwindSafe for loop_info
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