Enum multiboot2::MemoryAreaType
source · #[repr(u32)]pub enum MemoryAreaType {
Available = 1,
Reserved = 2,
AcpiAvailable = 3,
ReservedHibernate = 4,
Defective = 5,
}
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 = 1
Available memory free to be used by the OS.
Reserved = 2
A reserved area that must not be used.
AcpiAvailable = 3
Usable memory holding ACPI information.
ReservedHibernate = 4
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 = 5
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§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 Hash for MemoryAreaType
impl Hash for MemoryAreaType
source§impl Ord for MemoryAreaType
impl Ord for MemoryAreaType
source§impl PartialEq for MemoryAreaType
impl PartialEq 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 ==
.source§impl PartialOrd for MemoryAreaType
impl PartialOrd 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§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
source§impl<T> TagTrait for Twhere
T: Pointee<Metadata = ()>,
impl<T> TagTrait for Twhere
T: Pointee<Metadata = ()>,
source§fn dst_size(_: &Tag) -> <T as Pointee>::Metadata
fn dst_size(_: &Tag) -> <T as Pointee>::Metadata
Returns the amount of items in the dynamically sized portion of the
DST. Note that this is not the amount of bytes. So if the dynamically
sized portion is 16 bytes in size and each element is 4 bytes big, then
this function must return 4.
source§unsafe fn from_base_tag<'a>(tag: &Tag) -> &'a Self
unsafe fn from_base_tag<'a>(tag: &Tag) -> &'a Self
Creates a reference to a (dynamically sized) tag type in a safe way.
DST tags need to implement a proper
Self::dst_size
implementation. Read more