Struct concread::arcache::CacheStats[][src]

pub struct CacheStats {
    pub reader_hits: usize,
    pub reader_tlocal_hits: usize,
    pub reader_includes: usize,
    pub write_hits: usize,
    pub write_inc_or_mod: usize,
    pub shared_max: usize,
    pub freq: usize,
    pub recent: usize,
    pub freq_evicts: usize,
    pub recent_evicts: usize,
    pub p_weight: usize,
    pub all_seen_keys: usize,
}
Expand description

Statistics related to the Arc

Fields

reader_hits: usize

The number of hits during all read operations on the primary cache.

reader_tlocal_hits: usize

The number of hits during all read operations on the thread local caches.

reader_includes: usize

The number of inclusions through read operations.

write_hits: usize

The number of hits during all write operations.

write_inc_or_mod: usize

The number of inclusions or changes through write operations.

shared_max: usize

The maximum number of items in the shared cache.

freq: usize

The number of items in the frequent set

recent: usize

The number of items in the recent set

freq_evicts: usize

The number of items evicted from the frequent set

recent_evicts: usize

The number of items evicted from the recent set

p_weight: usize

The current cache weight between recent and frequent.

all_seen_keys: usize

The number of keys seen through the cache’s lifetime.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.