pub struct ConcurrentSlabMetrics {
pub slab: String,
pub length: usize,
pub capacity: usize,
pub memory_usage: usize,
pub content_memory_usage: usize,
pub free_slots_length: usize,
pub free_slots_capacity: usize,
}Fields§
§slab: String§length: usize§capacity: usize§memory_usage: usizeApproximate memory usage of the content of the slab Vec.
content_memory_usage: usizeApproximate memory usage of the total content of elements of type T
the slab slots point to via Arc<T>. This does not
include any additional memory allocated by individual T elements,
just the raw size of each T.
free_slots_length: usize§free_slots_capacity: usizeTrait Implementations§
Source§impl Clone for ConcurrentSlabMetrics
impl Clone for ConcurrentSlabMetrics
Source§fn clone(&self) -> ConcurrentSlabMetrics
fn clone(&self) -> ConcurrentSlabMetrics
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 ConcurrentSlabMetrics
impl Debug for ConcurrentSlabMetrics
Source§impl<'de> Deserialize<'de> for ConcurrentSlabMetrics
impl<'de> Deserialize<'de> for ConcurrentSlabMetrics
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 ConcurrentSlabMetrics
impl RefUnwindSafe for ConcurrentSlabMetrics
impl Send for ConcurrentSlabMetrics
impl Sync for ConcurrentSlabMetrics
impl Unpin for ConcurrentSlabMetrics
impl UnsafeUnpin for ConcurrentSlabMetrics
impl UnwindSafe for ConcurrentSlabMetrics
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