#[non_exhaustive]pub struct WeightResidencyStats {
pub hits: u64,
pub uploads: u64,
pub evicted: u64,
pub resident: usize,
pub resident_bytes: u64,
pub evicted_for_budget: u64,
pub rejected: u64,
pub cap_bytes: u64,
}Expand description
Counters of a device’s weight residency (see Device::weight_residency_stats).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.hits: u64Weight Consts served from an earlier upload.
uploads: u64Weight Consts uploaded (each one a miss that became resident).
evicted: u64Entries dropped because their source array was no longer held by anything else.
resident: usizeEntries resident now.
resident_bytes: u64Bytes resident now (the sum of the entries’ source-array sizes).
evicted_for_budget: u64Entries evicted to stay under the byte cap (a subset of evicted).
rejected: u64Weights uploaded but not retained because one weight alone exceeded the whole cap.
cap_bytes: u64The byte cap in force at the last seeding (0 before any seeding).
Trait Implementations§
Source§impl Clone for WeightResidencyStats
impl Clone for WeightResidencyStats
impl Copy for WeightResidencyStats
Source§impl Debug for WeightResidencyStats
impl Debug for WeightResidencyStats
Source§impl Default for WeightResidencyStats
impl Default for WeightResidencyStats
impl Eq for WeightResidencyStats
Source§impl PartialEq for WeightResidencyStats
impl PartialEq for WeightResidencyStats
impl StructuralPartialEq for WeightResidencyStats
Auto Trait Implementations§
impl Forget for WeightResidencyStats
impl Freeze for WeightResidencyStats
impl Move for WeightResidencyStats
impl RefUnwindSafe for WeightResidencyStats
impl Send for WeightResidencyStats
impl Sync for WeightResidencyStats
impl Unpin for WeightResidencyStats
impl UnsafeUnpin for WeightResidencyStats
impl UnwindSafe for WeightResidencyStats
Blanket Implementations§
impl<T> Boilerplate for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more