Struct uefi::proto::device_path::DevicePathHeader
source · [−]#[repr(C, packed)]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
sourceimpl Clone for DevicePathHeader
impl Clone for DevicePathHeader
sourcefn clone(&self) -> DevicePathHeader
fn clone(&self) -> DevicePathHeader
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DevicePathHeader
impl Debug for DevicePathHeader
sourceimpl PartialEq<DevicePathHeader> for DevicePathHeader
impl PartialEq<DevicePathHeader> for DevicePathHeader
sourcefn 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 ==
. Read more
impl Copy for DevicePathHeader
impl Eq for DevicePathHeader
impl StructuralEq for DevicePathHeader
impl StructuralPartialEq for DevicePathHeader
Auto Trait Implementations
impl RefUnwindSafe for DevicePathHeader
impl Send for DevicePathHeader
impl Sync for DevicePathHeader
impl Unpin for DevicePathHeader
impl UnwindSafe for DevicePathHeader
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more