Struct 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, 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.

Source

pub fn append_path( &self, right: &Self, ) -> Result<PoolDevicePath, DevicePathUtilitiesError>

Available on crate feature alloc only.

Allocates and returns a new DevicePath by copying this one and appending the given right path.

Source

pub fn append_node( &self, right: &DevicePathNode, ) -> Result<PoolDevicePath, DevicePathUtilitiesError>

Available on crate feature alloc only.

Allocates and returns a new DevicePath by copying this one and appending the given right node.

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

Source§

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

Source§

type Metadata = <DevicePath as Pointee>::Metadata

The metadata type for pointers and references to this type.
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
Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.