#[repr(C)]pub struct DevPathHeader {
pub devtype: u8,
pub subtype: u8,
pub length: u16,
}Fields§
§devtype: u8§subtype: u8§length: u16Implementations§
Source§impl DevPathHeader
impl DevPathHeader
pub fn new(devtype: u8, subtype: u8, length: usize) -> Self
pub fn new_hw_pci() -> Self
pub fn new_acpi_dp() -> Self
pub fn new_acpi_adr(elems: usize) -> Self
pub fn new_msg_scsi() -> Self
pub fn new_msg_usb() -> Self
pub fn new_msg_vendor() -> Self
pub fn new_msg_mac() -> Self
pub fn new_msg_ipv4() -> Self
pub fn new_msg_ipv6() -> Self
pub fn new_msg_uart() -> Self
pub fn new_msg_sata() -> Self
pub fn new_msg_usb_class() -> Self
pub fn new_msg_uri(bytes: usize) -> Self
pub fn new_media_hd() -> Self
pub fn new_media_vendor() -> Self
pub fn new_media_fw_file() -> Self
pub fn new_media_fw_vol() -> Self
pub fn new_media_filepath(bytes: usize) -> Self
pub fn new_end(subtype: u8) -> Self
Trait Implementations§
Source§impl Debug for DevPathHeader
impl Debug for DevPathHeader
Source§impl FromBytes for DevPathHeader
impl FromBytes for DevPathHeader
Source§impl FromZeros for DevPathHeader
impl FromZeros for DevPathHeader
impl Immutable for DevPathHeader
Source§impl IntoBytes for DevPathHeader
impl IntoBytes for DevPathHeader
Source§fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
Gets the bytes of this value mutably. Read more
Source§fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
Source§impl PartialEq for DevPathHeader
impl PartialEq for DevPathHeader
impl StructuralPartialEq for DevPathHeader
Source§impl TryFromBytes for DevPathHeader
impl TryFromBytes for DevPathHeader
Source§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Auto Trait Implementations§
impl Freeze for DevPathHeader
impl RefUnwindSafe for DevPathHeader
impl Send for DevPathHeader
impl Sync for DevPathHeader
impl Unpin for DevPathHeader
impl UnsafeUnpin for DevPathHeader
impl UnwindSafe for DevPathHeader
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