Struct solana_ledger::slot_stats::SlotsStats
source · pub struct SlotsStats {
pub stats: Mutex<LruCache<Slot, SlotStats>>,
}
Fields§
§stats: Mutex<LruCache<Slot, SlotStats>>
Implementations§
source§impl SlotsStats
impl SlotsStats
fn get_or_default_with_eviction_check<'a>( stats: &'a mut MutexGuard<'_, LruCache<Slot, SlotStats>>, slot: Slot ) -> (&'a mut SlotStats, Option<(Slot, SlotStats)>)
pub(crate) fn record_shred( &self, slot: Slot, fec_set_index: u32, source: ShredSource, slot_meta: Option<&SlotMeta> )
fn add_flag(&self, slot: Slot, flag: SlotFlags)
pub fn mark_dead(&self, slot: Slot)
pub fn mark_rooted(&self, slot: Slot)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SlotsStats
impl Send for SlotsStats
impl Sync for SlotsStats
impl Unpin for SlotsStats
impl UnwindSafe for SlotsStats
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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request