Struct uefi::proto::device_path::text::DevicePathToText
source · pub struct DevicePathToText(/* private fields */);
Expand description
Device Path to Text protocol.
This protocol provides common utility functions for converting device nodes and device paths to a text representation.
Implementations§
source§impl DevicePathToText
impl DevicePathToText
sourcepub fn convert_device_node_to_text<'boot>(
&self,
boot_services: &'boot BootServices,
device_node: &DevicePathNode,
display_only: DisplayOnly,
allow_shortcuts: AllowShortcuts
) -> Result<PoolString<'boot>>
pub fn convert_device_node_to_text<'boot>( &self, boot_services: &'boot BootServices, device_node: &DevicePathNode, display_only: DisplayOnly, allow_shortcuts: AllowShortcuts ) -> Result<PoolString<'boot>>
Convert a device node to its text representation.
Returns an OUT_OF_RESOURCES
error if there is insufficient
memory for the conversion.
sourcepub fn convert_device_path_to_text<'boot>(
&self,
boot_services: &'boot BootServices,
device_path: &DevicePath,
display_only: DisplayOnly,
allow_shortcuts: AllowShortcuts
) -> Result<PoolString<'boot>>
pub fn convert_device_path_to_text<'boot>( &self, boot_services: &'boot BootServices, device_path: &DevicePath, display_only: DisplayOnly, allow_shortcuts: AllowShortcuts ) -> Result<PoolString<'boot>>
Convert a device path to its text representation.
Returns an OUT_OF_RESOURCES
error if there is insufficient
memory for the conversion.
Trait Implementations§
source§impl Debug for DevicePathToText
impl Debug for DevicePathToText
source§impl Identify for DevicePathToText
impl Identify for DevicePathToText
impl Protocol for DevicePathToText
Auto Trait Implementations§
impl Freeze for DevicePathToText
impl RefUnwindSafe for DevicePathToText
impl Send for DevicePathToText
impl Sync for DevicePathToText
impl Unpin for DevicePathToText
impl UnwindSafe for DevicePathToText
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