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 DevicePath
node.
Fields
device_type: DeviceType
Type of device
sub_type: DeviceSubType
Sub type of device
length: u16
Size (in bytes) of the full DevicePath
instance, 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
sourcefn ne(&self, other: &DevicePathHeader) -> bool
fn ne(&self, other: &DevicePathHeader) -> bool
This method tests for !=
.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more