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>§

source

pub fn as_ffi_ptr(&self) -> *const FfiDevicePath

Cast to a FfiDevicePath pointer.

source

pub fn instance_iter(&self) -> DevicePathInstanceIterator<'_>

Get an iterator over the DevicePathInstances in this path.

source

pub fn node_iter(&self) -> DevicePathNodeIterator<'_>

Get an iterator over the DevicePathNodes 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.

source

pub fn as_bytes(&self) -> &[u8]

Returns a slice of the underlying bytes.

source

pub fn to_boxed(&self) -> Box<Self>

Available on crate feature alloc only.

Returns a boxed copy of that value.

source

pub fn to_string( &self, bs: &BootServices, display_only: DisplayOnly, allow_shortcuts: AllowShortcuts ) -> Result<CString16, DevicePathToTextError>

Available on crate feature alloc only.

Transforms the device path to its string representation using the DevicePathToText protocol.

Trait Implementations§

source§

impl Debug for LoadedImageDevicePath

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Deref for LoadedImageDevicePath

§

type Target = DevicePath

The resulting type after dereferencing.
source§

fn deref(&self) -> &DevicePath

Dereferences the value.
source§

impl Identify for LoadedImageDevicePath

source§

const GUID: Guid = _

Unique protocol identifier.
source§

impl Pointee for LoadedImageDevicePath

§

type Metadata = <DevicePath as Pointee>::Metadata

The type for metadata in pointers and references to Self.
source§

impl ProtocolPointer for LoadedImageDevicePath

source§

unsafe fn ptr_from_ffi(ptr: *const c_void) -> *const Self

Create a const pointer to a Protocol from a c_void pointer. Read more
source§

unsafe fn mut_ptr_from_ffi(ptr: *mut c_void) -> *mut Self

Create a mutable pointer to a Protocol from a c_void pointer. Read more
source§

impl Protocol for LoadedImageDevicePath

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more