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.

Implementors§

source§

impl Identify for GraphicsOutput

source§

const GUID: Guid = _

source§

impl Identify for Pointer

source§

const GUID: Guid = _

source§

impl Identify for Serial

source§

const GUID: Guid = _

source§

impl Identify for Input

source§

const GUID: Guid = _

source§

impl Identify for Output

source§

const GUID: 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 = _

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 = _

source§

impl Identify for ComponentName1

source§

const GUID: Guid = _

source§

impl Identify for ComponentName2

source§

const GUID: Guid = _

source§

impl Identify for LoadedImage

source§

const GUID: Guid = _

source§

impl Identify for BlockIO

source§

const GUID: Guid = _

source§

impl Identify for DiskIo2

source§

const GUID: Guid = _

source§

impl Identify for DiskIo

source§

const GUID: Guid = _

source§

impl Identify for FileInfo

source§

const GUID: Guid = _

source§

impl Identify for FileSystemInfo

source§

const GUID: Guid = _

source§

impl Identify for FileSystemVolumeLabel

source§

const GUID: Guid = _

source§

impl Identify for SimpleFileSystem

source§

const GUID: Guid = _

source§

impl Identify for PartitionInfo

source§

const GUID: 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 = _

source§

impl Identify for ShimLock

Available on target_arch="i386" 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 = _