pub struct DreamState {
pub total_entries: usize,
pub hot_count: usize,
pub warm_count: usize,
pub cold_count: usize,
pub root_version: u64,
pub type_distribution: Vec<(MemoryType, usize)>,
pub protection_distribution: Vec<(ProtectionLevel, usize)>,
pub avg_decay: f32,
}Fields§
§total_entries: usize§hot_count: usize§warm_count: usize§cold_count: usize§root_version: u64§type_distribution: Vec<(MemoryType, usize)>§protection_distribution: Vec<(ProtectionLevel, usize)>§avg_decay: f32Trait Implementations§
Source§impl Clone for DreamState
impl Clone for DreamState
Source§fn clone(&self) -> DreamState
fn clone(&self) -> DreamState
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 moreSource§impl Debug for DreamState
impl Debug for DreamState
Source§impl<'de> Deserialize<'de> for DreamState
impl<'de> Deserialize<'de> for DreamState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DreamState
impl RefUnwindSafe for DreamState
impl Send for DreamState
impl Sync for DreamState
impl Unpin for DreamState
impl UnsafeUnpin for DreamState
impl UnwindSafe for DreamState
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