uefi_raw::protocol::device_path

Struct DeviceSubType

source
#[repr(transparent)]
pub struct DeviceSubType(pub u8);
Expand description

Sub-type identifier for a device path node.

Tuple Fields§

§0: u8

Implementations§

source§

impl DeviceSubType

source

pub const HARDWARE_PCI: Self = _

PCI Device Path.

source

pub const HARDWARE_PCCARD: Self = _

PCCARD Device Path.

source

pub const HARDWARE_MEMORY_MAPPED: Self = _

Memory-mapped Device Path.

source

pub const HARDWARE_VENDOR: Self = _

Vendor-Defined Device Path.

source

pub const HARDWARE_CONTROLLER: Self = _

Controller Device Path.

source

pub const HARDWARE_BMC: Self = _

BMC Device Path.

source

pub const ACPI: Self = _

ACPI Device Path.

source

pub const ACPI_EXPANDED: Self = _

Expanded ACPI Device Path.

source

pub const ACPI_ADR: Self = _

ACPI _ADR Device Path.

source

pub const ACPI_NVDIMM: Self = _

NVDIMM Device Path.

source

pub const MESSAGING_ATAPI: Self = _

ATAPI Device Path.

source

pub const MESSAGING_SCSI: Self = _

SCSI Device Path.

source

pub const MESSAGING_FIBRE_CHANNEL: Self = _

Fibre Channel Device Path.

source

pub const MESSAGING_1394: Self = _

1394 Device Path.

source

pub const MESSAGING_USB: Self = _

USB Device Path.

source

pub const MESSAGING_I2O: Self = _

I2O Device Path.

source

pub const MESSAGING_INFINIBAND: Self = _

Infiniband Device Path.

source

pub const MESSAGING_VENDOR: Self = _

Vendor-Defined Device Path.

source

pub const MESSAGING_MAC_ADDRESS: Self = _

MAC Address Device Path.

source

pub const MESSAGING_IPV4: Self = _

IPV4 Device Path.

source

pub const MESSAGING_IPV6: Self = _

IPV6 Device Path.

source

pub const MESSAGING_UART: Self = _

UART Device Path.

source

pub const MESSAGING_USB_CLASS: Self = _

USB Class Device Path.

source

pub const MESSAGING_USB_WWID: Self = _

USB WWID Device Path.

source

pub const MESSAGING_DEVICE_LOGICAL_UNIT: Self = _

Device Logical Unit.

source

pub const MESSAGING_SATA: Self = _

SATA Device Path.

source

pub const MESSAGING_ISCSI: Self = _

iSCSI Device Path node (base information).

source

pub const MESSAGING_VLAN: Self = _

VLAN Device Path node.

source

pub const MESSAGING_FIBRE_CHANNEL_EX: Self = _

Fibre Channel Ex Device Path.

source

pub const MESSAGING_SCSI_SAS_EX: Self = _

Serial Attached SCSI (SAS) Ex Device Path.

source

pub const MESSAGING_NVME_NAMESPACE: Self = _

NVM Express Namespace Device Path.

source

pub const MESSAGING_URI: Self = _

Uniform Resource Identifiers (URI) Device Path.

source

pub const MESSAGING_UFS: Self = _

UFS Device Path.

source

pub const MESSAGING_SD: Self = _

SD (Secure Digital) Device Path.

source

pub const MESSAGING_BLUETOOTH: Self = _

Bluetooth Device Path.

source

pub const MESSAGING_WIFI: Self = _

Wi-Fi Device Path.

source

pub const MESSAGING_EMMC: Self = _

eMMC (Embedded Multi-Media Card) Device Path.

source

pub const MESSAGING_BLUETOOTH_LE: Self = _

BluetoothLE Device Path.

source

pub const MESSAGING_DNS: Self = _

DNS Device Path.

source

pub const MESSAGING_NVDIMM_NAMESPACE: Self = _

NVDIMM Namespace Device Path.

source

pub const MESSAGING_REST_SERVICE: Self = _

REST Service Device Path.

source

pub const MESSAGING_NVME_OF_NAMESPACE: Self = _

NVME over Fabric (NVMe-oF) Namespace Device Path.

source

pub const MEDIA_HARD_DRIVE: Self = _

Hard Drive Media Device Path.

source

pub const MEDIA_CD_ROM: Self = _

CD-ROM Media Device Path.

source

pub const MEDIA_VENDOR: Self = _

Vendor-Defined Media Device Path.

source

pub const MEDIA_FILE_PATH: Self = _

File Path Media Device Path.

source

pub const MEDIA_PROTOCOL: Self = _

Media Protocol Device Path.

source

pub const MEDIA_PIWG_FIRMWARE_FILE: Self = _

PIWG Firmware File.

source

pub const MEDIA_PIWG_FIRMWARE_VOLUME: Self = _

PIWG Firmware Volume.

source

pub const MEDIA_RELATIVE_OFFSET_RANGE: Self = _

Relative Offset Range.

source

pub const MEDIA_RAM_DISK: Self = _

RAM Disk Device Path.

source

pub const BIOS_BOOT_SPECIFICATION: Self = _

BIOS Boot Specification Device Path.

source

pub const END_INSTANCE: Self = _

End this instance of a Device Path and start a new one.

source

pub const END_ENTIRE: Self = _

End entire Device Path.

Trait Implementations§

source§

impl Clone for DeviceSubType

source§

fn clone(&self) -> DeviceSubType

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DeviceSubType

source§

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

Formats the value using the given formatter. Read more
source§

impl Hash for DeviceSubType

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for DeviceSubType

source§

fn cmp(&self, other: &DeviceSubType) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for DeviceSubType

source§

fn eq(&self, other: &DeviceSubType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for DeviceSubType

source§

fn partial_cmp(&self, other: &DeviceSubType) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Copy for DeviceSubType

source§

impl Eq for DeviceSubType

source§

impl StructuralPartialEq for DeviceSubType

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> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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, 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.