Struct solana_runtime::active_stats::ActiveStatGuard
source · pub struct ActiveStatGuard<'a> {
stats: &'a ActiveStats,
item: ActiveStatItem,
}
Expand description
sole purpose is to handle ‘drop’ so that stat is decremented when self is dropped
Fields§
§stats: &'a ActiveStats
§item: ActiveStatItem
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for ActiveStatGuard<'a>
impl<'a> Send for ActiveStatGuard<'a>
impl<'a> Sync for ActiveStatGuard<'a>
impl<'a> Unpin for ActiveStatGuard<'a>
impl<'a> UnwindSafe for ActiveStatGuard<'a>
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