#[repr(transparent)]pub struct DeviceType(pub u8);
Expand description
Type identifier for a device path node.
Tuple Fields§
§0: u8
Implementations§
source§impl DeviceType
impl DeviceType
sourcepub const HARDWARE: DeviceType = _
pub const HARDWARE: DeviceType = _
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.
sourcepub const ACPI: DeviceType = _
pub const ACPI: DeviceType = _
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.
sourcepub const MESSAGING: DeviceType = _
pub const MESSAGING: DeviceType = _
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.
sourcepub const MEDIA: DeviceType = _
pub const MEDIA: DeviceType = _
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.
sourcepub const BIOS_BOOT_SPEC: DeviceType = _
pub const BIOS_BOOT_SPEC: DeviceType = _
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.
sourcepub const END: DeviceType = _
pub const END: DeviceType = _
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§
source§impl Clone for DeviceType
impl Clone for DeviceType
source§fn clone(&self) -> DeviceType
fn clone(&self) -> DeviceType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DeviceType
impl Debug for DeviceType
source§impl Hash for DeviceType
impl Hash for DeviceType
source§impl Ord for DeviceType
impl Ord for DeviceType
source§fn cmp(&self, other: &DeviceType) -> Ordering
fn cmp(&self, other: &DeviceType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for DeviceType
impl PartialEq for DeviceType
source§impl PartialOrd for DeviceType
impl PartialOrd for DeviceType
impl Copy for DeviceType
impl Eq for DeviceType
impl StructuralPartialEq for DeviceType
Auto Trait Implementations§
impl Freeze for DeviceType
impl RefUnwindSafe for DeviceType
impl Send for DeviceType
impl Sync for DeviceType
impl Unpin for DeviceType
impl UnwindSafe for DeviceType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)