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

Type identifier for a DevicePath

Tuple Fields

0: u8

Implementations

Hardware Device Path.

This Device Path defines how a device is attached to the resource domain of a system, where resource domain is simply the shared memory, memory mapped I/ O, and I/O space of the system.

ACPI Device Path.

This Device Path is used to describe devices whose enumeration is not described in an industry-standard fashion. These devices must be described using ACPI AML in the ACPI namespace; this Device Path is a linkage to the ACPI namespace.

Messaging Device Path.

This Device Path is used to describe the connection of devices outside the resource domain of the system. This Device Path can describe physical messaging information such as a SCSI ID, or abstract information such as networking protocol IP addresses.

Media Device Path.

This Device Path is used to describe the portion of a medium that is being abstracted by a boot service. For example, a Media Device Path could define which partition on a hard drive was being used.

BIOS Boot Specification Device Path.

This Device Path is used to point to boot legacy operating systems; it is based on the BIOS Boot Specification Version 1.01.

End of Hardware Device Path.

Depending on the Sub-Type, this Device Path node is used to indicate the end of the Device Path instance or Device Path structure.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.