Struct starnix_uapi::uapi::dm_ioctl
source · #[repr(C)]pub struct dm_ioctl {
pub version: [u32; 3],
pub data_size: u32,
pub data_start: u32,
pub target_count: u32,
pub open_count: i32,
pub flags: u32,
pub event_nr: u32,
pub padding: u32,
pub dev: u64,
pub name: [i8; 128],
pub uuid: [i8; 129],
pub data: [i8; 7],
}
Fields§
§version: [u32; 3]
§data_size: u32
§data_start: u32
§target_count: u32
§open_count: i32
§flags: u32
§event_nr: u32
§padding: u32
§dev: u64
§name: [i8; 128]
§uuid: [i8; 129]
§data: [i8; 7]
Trait Implementations§
source§impl FromBytes for dm_ioctl
impl FromBytes for dm_ioctl
§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 dm_ioctl
impl IntoBytes for dm_ioctl
impl Copy for dm_ioctl
Auto Trait Implementations§
impl Freeze for dm_ioctl
impl RefUnwindSafe for dm_ioctl
impl Send for dm_ioctl
impl Sync for dm_ioctl
impl Unpin for dm_ioctl
impl UnwindSafe for dm_ioctl
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