Struct uefi::proto::device_path::LoadedImageDevicePath
source · pub struct LoadedImageDevicePath(/* private fields */);
Expand description
Protocol for accessing the device path that was passed in to load_image
when loading a PE/COFF image.
The layout of this type is the same as a DevicePath
.
Methods from Deref<Target = DevicePath>§
sourcepub fn as_ffi_ptr(&self) -> *const FfiDevicePath
pub fn as_ffi_ptr(&self) -> *const FfiDevicePath
Cast to a FfiDevicePath
pointer.
sourcepub fn instance_iter(&self) -> DevicePathInstanceIterator<'_> ⓘ
pub fn instance_iter(&self) -> DevicePathInstanceIterator<'_> ⓘ
Get an iterator over the DevicePathInstance
s in this path.
sourcepub fn node_iter(&self) -> DevicePathNodeIterator<'_> ⓘ
pub fn node_iter(&self) -> DevicePathNodeIterator<'_> ⓘ
Get an iterator over the DevicePathNode
s 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.
sourcepub fn to_boxed(&self) -> Box<Self>
Available on crate feature alloc
only.
pub fn to_boxed(&self) -> Box<Self>
alloc
only.Returns a boxed copy of that value.
sourcepub fn to_string(
&self,
bs: &BootServices,
display_only: DisplayOnly,
allow_shortcuts: AllowShortcuts
) -> Result<CString16, DevicePathToTextError>
Available on crate feature alloc
only.
pub fn to_string( &self, bs: &BootServices, display_only: DisplayOnly, allow_shortcuts: AllowShortcuts ) -> Result<CString16, DevicePathToTextError>
alloc
only.Transforms the device path to its string representation using the
DevicePathToText
protocol.
Trait Implementations§
source§impl Debug for LoadedImageDevicePath
impl Debug for LoadedImageDevicePath
source§impl Deref for LoadedImageDevicePath
impl Deref for LoadedImageDevicePath
§type Target = DevicePath
type Target = DevicePath
The resulting type after dereferencing.
source§fn deref(&self) -> &DevicePath
fn deref(&self) -> &DevicePath
Dereferences the value.
source§impl Identify for LoadedImageDevicePath
impl Identify for LoadedImageDevicePath
source§impl Pointee for LoadedImageDevicePathwhere
DevicePath: Pointee,
impl Pointee for LoadedImageDevicePathwhere
DevicePath: Pointee,
§type Metadata = <DevicePath as Pointee>::Metadata
type Metadata = <DevicePath as Pointee>::Metadata
The type for metadata in pointers and references to
Self
.