pub struct BlockCounters {
pub updated_at: u32,
pub total: u64,
pub cnt2048: u64,
pub cnt65536: u64,
}Expand description
Block counters with absolute value and rates.
Fields§
§updated_at: u32Unix timestamp in seconds of the last counters update.
total: u64Total counter value.
cnt2048: u64Scaled counter rate.
cnt65536: u64Scaled counter rate (better precision).
Trait Implementations§
Source§impl Clone for BlockCounters
impl Clone for BlockCounters
Source§fn clone(&self) -> BlockCounters
fn clone(&self) -> BlockCounters
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BlockCounters
impl Debug for BlockCounters
Source§impl<'tlb> Load<'tlb> for BlockCounters
impl<'tlb> Load<'tlb> for BlockCounters
Source§impl PartialEq for BlockCounters
impl PartialEq for BlockCounters
Source§impl Store for BlockCounters
impl Store for BlockCounters
Source§fn store_into(
&self,
__builder: &mut CellBuilder,
__context: &dyn CellContext,
) -> Result<(), Error>
fn store_into( &self, __builder: &mut CellBuilder, __context: &dyn CellContext, ) -> Result<(), Error>
Tries to store itself into the cell builder.
impl Copy for BlockCounters
impl Eq for BlockCounters
impl StructuralPartialEq for BlockCounters
Auto Trait Implementations§
impl Freeze for BlockCounters
impl RefUnwindSafe for BlockCounters
impl Send for BlockCounters
impl Sync for BlockCounters
impl Unpin for BlockCounters
impl UnwindSafe for BlockCounters
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compares
self to key and returns true if they are equal.