Struct uefi::proto::device_path::DevicePath
source · [−]#[repr(C, packed)]pub struct DevicePath { /* private fields */ }
Expand description
Device path protocol.
This can be opened on a LoadedImage.device()
handle using the HandleProtocol
boot service.
Implementations
sourceimpl DevicePath
impl DevicePath
sourcepub fn device_type(&self) -> DeviceType
pub fn device_type(&self) -> DeviceType
Type of device
sourcepub fn sub_type(&self) -> DeviceSubType
pub fn sub_type(&self) -> DeviceSubType
Sub type of device
sourcepub fn length(&self) -> u16
pub fn length(&self) -> u16
Size (in bytes) of the full DevicePath
instance, including the header.
sourcepub fn is_end_entire(&self) -> bool
pub fn is_end_entire(&self) -> bool
True if this node ends the entire path.
sourcepub fn iter(&self) -> DevicePathIterator<'_>ⓘNotable traits for DevicePathIterator<'a>impl<'a> Iterator for DevicePathIterator<'a> type Item = &'a DevicePath;
pub fn iter(&self) -> DevicePathIterator<'_>ⓘNotable traits for DevicePathIterator<'a>impl<'a> Iterator for DevicePathIterator<'a> type Item = &'a DevicePath;
Get an iterator over the DevicePath
nodes starting at
self
. Iteration ends when a path is reached where
is_end_entire
is true. That ending path
is not returned by the iterator.
Trait Implementations
sourceimpl PartialEq<DevicePath> for DevicePath
impl PartialEq<DevicePath> for DevicePath
impl Eq for DevicePath
impl Protocol for DevicePath
impl !Send for DevicePath
impl StructuralEq for DevicePath
impl !Sync for DevicePath
Auto Trait Implementations
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