Trait uefi::proto::Protocol

source ·
pub trait Protocol: Identify { }
Expand description

Common trait implemented by all standard UEFI protocols.

You can derive the Protocol trait and specify the protocol’s GUID using the unsafe_protocol macro.

§Example

use uefi::{Identify, guid};
use uefi::proto::unsafe_protocol;

#[unsafe_protocol("12345678-9abc-def0-1234-56789abcdef0")]
struct ExampleProtocol {}

assert_eq!(ExampleProtocol::GUID, guid!("12345678-9abc-def0-1234-56789abcdef0"));

Object Safety§

This trait is not object safe.

Implementors§