Struct uefi::proto::device_path::DevicePathHeader
source · #[repr(C, packed(1))]pub struct DevicePathHeader {
pub device_type: DeviceType,
pub sub_type: DeviceSubType,
pub length: u16,
}
Expand description
Header that appears at the start of every DevicePathNode
.
Fields§
§device_type: DeviceType
Type of device
sub_type: DeviceSubType
Sub type of device
length: u16
Size (in bytes) of the DevicePathNode
, including this header.
Trait Implementations§
source§impl Clone for DevicePathHeader
impl Clone for DevicePathHeader
source§fn clone(&self) -> DevicePathHeader
fn clone(&self) -> DevicePathHeader
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 DevicePathHeader
impl Debug for DevicePathHeader
source§impl PartialEq for DevicePathHeader
impl PartialEq for DevicePathHeader
source§fn eq(&self, other: &DevicePathHeader) -> bool
fn eq(&self, other: &DevicePathHeader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DevicePathHeader
impl Eq for DevicePathHeader
impl StructuralPartialEq for DevicePathHeader
Auto Trait Implementations§
impl Freeze for DevicePathHeader
impl RefUnwindSafe for DevicePathHeader
impl Send for DevicePathHeader
impl Sync for DevicePathHeader
impl Unpin for DevicePathHeader
impl UnwindSafe for DevicePathHeader
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