Struct uefi::proto::device_path::DeviceType
source · [−]#[repr(transparent)]pub struct DeviceType(pub u8);
Expand description
Type identifier for a DevicePath
Tuple Fields
0: u8
Implementations
sourceimpl 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
sourceimpl Clone for DeviceType
impl Clone for DeviceType
sourcefn clone(&self) -> DeviceType
fn clone(&self) -> DeviceType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DeviceType
impl Debug for DeviceType
sourceimpl PartialEq<DeviceType> for DeviceType
impl PartialEq<DeviceType> for DeviceType
sourcefn eq(&self, other: &DeviceType) -> bool
fn eq(&self, other: &DeviceType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DeviceType) -> bool
fn ne(&self, other: &DeviceType) -> bool
This method tests for !=
.
impl Copy for DeviceType
impl Eq for DeviceType
impl StructuralEq for DeviceType
impl StructuralPartialEq for DeviceType
Auto Trait Implementations
impl RefUnwindSafe for DeviceType
impl Send for DeviceType
impl Sync for DeviceType
impl Unpin for DeviceType
impl UnwindSafe for DeviceType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more