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
sourceimpl Clone for MemoryAreaType
impl Clone for MemoryAreaType
sourcefn clone(&self) -> MemoryAreaType
fn clone(&self) -> MemoryAreaType
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 MemoryAreaType
impl Debug for MemoryAreaType
sourceimpl PartialEq<MemoryAreaType> for MemoryAreaType
impl PartialEq<MemoryAreaType> for MemoryAreaType
impl Copy for MemoryAreaType
impl Eq for MemoryAreaType
impl StructuralEq for MemoryAreaType
impl StructuralPartialEq for MemoryAreaType
Auto Trait Implementations
impl RefUnwindSafe for MemoryAreaType
impl Send for MemoryAreaType
impl Sync for MemoryAreaType
impl Unpin for MemoryAreaType
impl UnwindSafe for MemoryAreaType
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