#[repr(C)]pub struct DevicePathProtocol {
pub major_type: DeviceType,
pub sub_type: DeviceSubType,
pub length: [u8; 2],
}
Expand description
Device path protocol.
A device path contains one or more device path instances made up of variable-length nodes.
Note that the fields in this struct define the header at the start of each node; a device path is typically larger than these four bytes.
Fields§
§major_type: DeviceType
§sub_type: DeviceSubType
§length: [u8; 2]
Total length of the type including the fixed header as u16 in LE order.
Implementations§
Trait Implementations§
Source§impl Clone for DevicePathProtocol
impl Clone for DevicePathProtocol
Source§fn clone(&self) -> DevicePathProtocol
fn clone(&self) -> DevicePathProtocol
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 DevicePathProtocol
impl Debug for DevicePathProtocol
Source§impl Hash for DevicePathProtocol
impl Hash for DevicePathProtocol
Source§impl Ord for DevicePathProtocol
impl Ord for DevicePathProtocol
Source§fn cmp(&self, other: &DevicePathProtocol) -> Ordering
fn cmp(&self, other: &DevicePathProtocol) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DevicePathProtocol
impl PartialEq for DevicePathProtocol
Source§impl PartialOrd for DevicePathProtocol
impl PartialOrd for DevicePathProtocol
impl Copy for DevicePathProtocol
impl Eq for DevicePathProtocol
impl StructuralPartialEq for DevicePathProtocol
Auto Trait Implementations§
impl Freeze for DevicePathProtocol
impl RefUnwindSafe for DevicePathProtocol
impl Send for DevicePathProtocol
impl Sync for DevicePathProtocol
impl Unpin for DevicePathProtocol
impl UnwindSafe for DevicePathProtocol
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