pub struct ContentionReport {
pub contended_exchanges: u64,
pub hottest: Vec<(AccountId, u64)>,
}Expand description
How contended this instance’s account funding lines have been.
Counts are lower bounds: see LocalLease::contended_debits for what a
lost-race counter cannot see.
Fields§
§contended_exchanges: u64Lost exchanges across every retained account.
hottest: Vec<(AccountId, u64)>The most-contended accounts, most contended first, ties by account id;
at most ContentionReport::HOTTEST and only accounts with a nonzero
count. Bounded so the report never grows with the account table.
Implementations§
Trait Implementations§
Source§impl Clone for ContentionReport
impl Clone for ContentionReport
Source§impl Debug for ContentionReport
impl Debug for ContentionReport
impl Eq for ContentionReport
Source§impl PartialEq for ContentionReport
impl PartialEq for ContentionReport
impl StructuralPartialEq for ContentionReport
Auto Trait Implementations§
impl Freeze for ContentionReport
impl RefUnwindSafe for ContentionReport
impl Send for ContentionReport
impl Sync for ContentionReport
impl Unpin for ContentionReport
impl UnsafeUnpin for ContentionReport
impl UnwindSafe for ContentionReport
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
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.