#[repr(u8)]pub enum MemoryTier {
Hot = 0,
Warm = 1,
Cold = 2,
}Expand description
Memory tier classification (hot/warm/cold).
Variants§
Hot = 0
Hot tier: SRAM or L1/L2 cache-resident.
Warm = 1
Warm tier: DRAM.
Cold = 2
Cold tier: persistent or swap-backed.
Trait Implementations§
Source§impl Clone for MemoryTier
impl Clone for MemoryTier
Source§fn clone(&self) -> MemoryTier
fn clone(&self) -> MemoryTier
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MemoryTier
Source§impl Debug for MemoryTier
impl Debug for MemoryTier
impl Eq for MemoryTier
Source§impl Hash for MemoryTier
impl Hash for MemoryTier
Source§impl Ord for MemoryTier
impl Ord for MemoryTier
Source§fn cmp(&self, other: &MemoryTier) -> Ordering
fn cmp(&self, other: &MemoryTier) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MemoryTier
impl PartialEq for MemoryTier
Source§impl PartialOrd for MemoryTier
impl PartialOrd for MemoryTier
impl StructuralPartialEq for MemoryTier
Auto Trait Implementations§
impl Freeze for MemoryTier
impl RefUnwindSafe for MemoryTier
impl Send for MemoryTier
impl Sync for MemoryTier
impl Unpin for MemoryTier
impl UnsafeUnpin for MemoryTier
impl UnwindSafe for MemoryTier
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