pub enum MemoryRegionType {
Free,
Reserved,
Unknown,
}
Expand description
Types of physical memory. See each variant’s documentation.
Variants§
Free
Memory that is available for any general purpose.
Reserved
Memory that is reserved for special use and is only ever allocated from if specifically requested. This includes custom memory regions added by third parties, e.g., device memory discovered and added by device drivers later during runtime.
Unknown
Memory of an unknown type. This is a default value that acts as a sanity check, because it is invalid to do any real work (e.g., allocation, access) with an unknown memory region.
Trait Implementations§
source§impl Clone for MemoryRegionType
impl Clone for MemoryRegionType
source§fn clone(&self) -> MemoryRegionType
fn clone(&self) -> MemoryRegionType
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 MemoryRegionType
impl Debug for MemoryRegionType
source§impl PartialEq<MemoryRegionType> for MemoryRegionType
impl PartialEq<MemoryRegionType> for MemoryRegionType
source§fn eq(&self, other: &MemoryRegionType) -> bool
fn eq(&self, other: &MemoryRegionType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MemoryRegionType
impl Eq for MemoryRegionType
impl StructuralEq for MemoryRegionType
impl StructuralPartialEq for MemoryRegionType
Auto Trait Implementations§
impl RefUnwindSafe for MemoryRegionType
impl Send for MemoryRegionType
impl Sync for MemoryRegionType
impl Unpin for MemoryRegionType
impl UnwindSafe for MemoryRegionType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more