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 duplicate 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, dest: *mut u8)

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