ComponentName1

Struct ComponentName1 

Source
pub struct ComponentName1(/* private fields */);
๐Ÿ‘ŽDeprecated: deprecated in UEFI 2.1; use ComponentName2 where possible
Expand description

Component Name1 Protocol.

Protocol that provides human-readable names for a driver and for each of the controllers that the driver is managing.

This protocol was deprecated in UEFI 2.1 in favor of the new ComponentName2 protocol. The two protocols are identical except the encoding of supported languages changed from ISO 639-2 to RFC 4646. The ComponentName wrapper can be used to automatically select ComponentName2 if available, and otherwise fall back to ComponentName1.

The corresponding C type is EFI_COMPONENT_NAME_PROTOCOL.

Implementationsยง

Sourceยง

impl ComponentName1

Source

pub const fn supported_languages( &self, ) -> Result<LanguageIter<'_>, LanguageError>

Get an iterator over supported languages. Each language is identified by a three-letter ASCII string specified in ISO 639-2. For example, English is encoded as โ€œengโ€.

Source

pub fn driver_name(&self, language: &str) -> Result<&CStr16>

Get the human-readable name of the driver in the given language.

language must be one of the languages returned by supported_languages.

Source

pub fn controller_name( &self, controller_handle: Handle, child_handle: Option<Handle>, language: &str, ) -> Result<&CStr16>

Get the human-readable name of a controller in the given language.

language must be one of the languages returned by supported_languages.

Trait Implementationsยง

Sourceยง

impl Debug for ComponentName1

Sourceยง

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

Formats the value using the given formatter. Read more
Sourceยง

impl Identify for ComponentName1

Sourceยง

const GUID: Guid = ComponentName2Protocol::DEPRECATED_COMPONENT_NAME_GUID

Unique protocol identifier.
Sourceยง

impl Protocol for ComponentName1

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<T> From<T> for T

Sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

Sourceยง

impl<T, U> Into<U> for T
where U: From<T>,

Sourceยง

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Sourceยง

impl<T> Pointee for T

Sourceยง

type Metadata = ()

The metadata type for pointers and references to this type.
Sourceยง

impl<P> ProtocolPointer for P
where P: Protocol,

Sourceยง

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

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 P

Create a mutable pointer to a Protocol from a c_void pointer. Read more
Sourceยง

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Sourceยง

type Error = Infallible

The type returned in the event of a conversion error.
Sourceยง

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Sourceยง

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Sourceยง

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Sourceยง

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.