Trait uefi::data_types::Identify

source ·
pub unsafe trait Identify {
    const GUID: Guid;
}
Expand description

Several entities in the UEFI specification can be referred to by their GUID, this trait is a building block to interface them in uefi-rs.

You should never need to use the Identify trait directly, but instead go for more specific traits such as Protocol or FileProtocolInfo, which indicate in which circumstances an Identify-tagged type should be used.

For the common case of implementing this trait for a protocol, use the unsafe_protocol macro.

§Safety

Implementing Identify is unsafe because attaching an incorrect GUID to a type can lead to type unsafety on both the Rust and UEFI side.

Required Associated Constants§

source

const GUID: Guid

Unique protocol identifier.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Identify for GraphicsOutput

source§

const GUID: Guid = GraphicsOutputProtocol::GUID

source§

impl Identify for Pointer

source§

const GUID: Guid = SimplePointerProtocol::GUID

source§

impl Identify for Serial

source§

const GUID: Guid = SerialIoProtocol::GUID

source§

impl Identify for Input

source§

const GUID: Guid = SimpleTextInputProtocol::GUID

source§

impl Identify for Output

source§

const GUID: Guid = SimpleTextOutputProtocol::GUID

source§

impl Identify for DebugPort

source§

const GUID: Guid = _

source§

impl Identify for DebugSupport

source§

const GUID: Guid = _

source§

impl Identify for DevicePath

source§

const GUID: Guid = uefi_raw::protocol::device_path::DevicePathProtocol::GUID

source§

impl Identify for LoadedImageDevicePath

source§

const GUID: Guid = _

source§

impl Identify for DevicePathFromText

source§

const GUID: Guid = _

source§

impl Identify for DevicePathToText

source§

const GUID: Guid = DevicePathToTextProtocol::GUID

source§

impl Identify for ComponentName1

source§

const GUID: Guid = ComponentName2Protocol::DEPRECATED_COMPONENT_NAME_GUID

source§

impl Identify for ComponentName2

source§

const GUID: Guid = ComponentName2Protocol::GUID

source§

impl Identify for LoadedImage

source§

const GUID: Guid = LoadedImageProtocol::GUID

source§

impl Identify for BlockIO

source§

const GUID: Guid = BlockIoProtocol::GUID

source§

impl Identify for DiskIo2

source§

const GUID: Guid = DiskIo2Protocol::GUID

source§

impl Identify for DiskIo

source§

const GUID: Guid = DiskIoProtocol::GUID

source§

impl Identify for FileInfo

source§

const GUID: Guid = uefi_raw::protocol::file_system::FileInfo::ID

source§

impl Identify for FileSystemInfo

source§

const GUID: Guid = uefi_raw::protocol::file_system::FileSystemInfo::ID

source§

impl Identify for FileSystemVolumeLabel

source§

const GUID: Guid = uefi_raw::protocol::file_system::FileSystemVolumeLabel::ID

source§

impl Identify for SimpleFileSystem

source§

const GUID: Guid = SimpleFileSystemProtocol::GUID

source§

impl Identify for PartitionInfo

source§

const GUID: Guid = _

source§

impl Identify for Timestamp

source§

const GUID: Guid = TimestampProtocol::GUID

source§

impl Identify for BaseCode

source§

const GUID: Guid = _

source§

impl Identify for SimpleNetwork

source§

const GUID: Guid = _

source§

impl Identify for MpServices

source§

const GUID: Guid = _

source§

impl Identify for Rng

source§

const GUID: Guid = uefi_raw::protocol::rng::RngProtocol::GUID

source§

impl Identify for MemoryProtection

source§

const GUID: Guid = MemoryAttributeProtocol::GUID

source§

impl Identify for ShellParameters

source§

const GUID: Guid = ShellParametersProtocol::GUID

source§

impl Identify for ShimLock

Available on x86 or x86-64 or ARM or AArch64 only.
source§

const GUID: Guid = _

source§

impl Identify for UnicodeCollation

source§

const GUID: Guid = _

source§

impl Identify for uefi::proto::tcg::v1::Tcg

source§

const GUID: Guid = _

source§

impl Identify for uefi::proto::tcg::v2::Tcg

source§

const GUID: Guid = _