Struct tartan_uefi::MemoryType
source · #[repr(transparent)]pub struct MemoryType(_);
Implementations§
source§impl MemoryType
impl MemoryType
sourcepub const LoaderCode: Self = _
pub const LoaderCode: Self = _
Memory used for UEFI application code.
sourcepub const LoaderData: Self = _
pub const LoaderData: Self = _
Memory allocated by UEFI applications.
sourcepub const BootServicesCode: Self = _
pub const BootServicesCode: Self = _
Memory used for drivers that provide BootServices
.
sourcepub const BootServicesData: Self = _
pub const BootServicesData: Self = _
Memory allocated by drivers that provide BootServices
.
sourcepub const RuntimeServicesCode: Self = _
pub const RuntimeServicesCode: Self = _
Memory used for drivers that provide RuntimeServices
.
sourcepub const RuntimeServicesData: Self = _
pub const RuntimeServicesData: Self = _
Memory allocated by drivers that provide RuntimeServices
.
sourcepub const Conventional: Self = _
pub const Conventional: Self = _
Free memory.
sourcepub const ACPIReclaim: Self = _
pub const ACPIReclaim: Self = _
Memory that can be used after the OS initializes ACPI.
sourcepub const ACPINonVolatile: Self = _
pub const ACPINonVolatile: Self = _
Memory that must be preserved in ACPI states S1–S3.
sourcepub const MappedIOPortSpace: Self = _
pub const MappedIOPortSpace: Self = _
Memory mapped to I/O ports.
sourcepub const ProcessorCode: Self = _
pub const ProcessorCode: Self = _
Memory used by processor firmware code.
sourcepub const Persistent: Self = _
pub const Persistent: Self = _
Free nonvolatile memory.
sourcepub const MinOEMDefined: Self = _
pub const MinOEMDefined: Self = _
Beginning of range (inclusive) for OEM-specific memory types
sourcepub const MaxOEMDefined: Self = _
pub const MaxOEMDefined: Self = _
End of range (inclusive) for OEM-specific memory types
sourcepub const MinOSDefined: Self = _
pub const MinOSDefined: Self = _
Beginning of range (inclusive) for operating system-specific memory types
sourcepub const MaxOSDefined: Self = _
pub const MaxOSDefined: Self = _
End of range (inclusive) for operating system-specific memory types
Trait Implementations§
source§impl CEnum<u32> for MemoryType
impl CEnum<u32> for MemoryType
source§impl Clone for MemoryType
impl Clone for MemoryType
source§fn clone(&self) -> MemoryType
fn clone(&self) -> MemoryType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MemoryType
impl Debug for MemoryType
source§impl Default for MemoryType
impl Default for MemoryType
source§fn default() -> MemoryType
fn default() -> MemoryType
source§impl From<MemoryType> for u32
impl From<MemoryType> for u32
source§fn from(enum_value: MemoryType) -> Self
fn from(enum_value: MemoryType) -> Self
source§impl From<u32> for MemoryType
impl From<u32> for MemoryType
source§impl Hash for MemoryType
impl Hash for MemoryType
source§impl Ord for MemoryType
impl Ord for MemoryType
source§fn cmp(&self, other: &MemoryType) -> Ordering
fn cmp(&self, other: &MemoryType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
source§impl PartialEq<MemoryType> for MemoryType
impl PartialEq<MemoryType> for MemoryType
source§fn eq(&self, other: &MemoryType) -> bool
fn eq(&self, other: &MemoryType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<MemoryType> for MemoryType
impl PartialOrd<MemoryType> for MemoryType
source§fn partial_cmp(&self, other: &MemoryType) -> Option<Ordering>
fn partial_cmp(&self, other: &MemoryType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more