Enum multiboot2::MemoryAreaType
source · #[repr(u32)]
pub enum MemoryAreaType {
Available,
Reserved,
AcpiAvailable,
ReservedHibernate,
Defective,
}Expand description
An enum of possible reported region types.
Inside the Multiboot2 spec this is kind of hidden
inside the implementation of struct multiboot_mmap_entry.
Variants§
Available
Available memory free to be used by the OS.
Reserved
A reserved area that must not be used.
AcpiAvailable
Usable memory holding ACPI information.
ReservedHibernate
Reserved memory which needs to be preserved on hibernation. Also called NVS in spec, which stands for “Non-Volatile Sleep/Storage”, which is part of ACPI specification.
Defective
Memory which is occupied by defective RAM modules.
Trait Implementations§
source§impl Clone for MemoryAreaType
impl Clone for MemoryAreaType
source§fn clone(&self) -> MemoryAreaType
fn clone(&self) -> MemoryAreaType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for MemoryAreaType
impl Debug for MemoryAreaType
source§impl PartialEq<MemoryAreaType> for MemoryAreaType
impl PartialEq<MemoryAreaType> for MemoryAreaType
source§fn eq(&self, other: &MemoryAreaType) -> bool
fn eq(&self, other: &MemoryAreaType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.