Struct solana_gossip::cluster_info_metrics::TimedGuard
source · pub(crate) struct TimedGuard<'a, T> {
guard: T,
timer: Measure,
counter: &'a Counter,
}
Fields§
§guard: T
§timer: Measure
§counter: &'a Counter
Implementations§
Trait Implementations§
source§impl<'a, T> Deref for TimedGuard<'a, T>
impl<'a, T> Deref for TimedGuard<'a, T>
source§impl<'a, T> DerefMut for TimedGuard<'a, T>
impl<'a, T> DerefMut for TimedGuard<'a, T>
Auto Trait Implementations§
impl<'a, T> RefUnwindSafe for TimedGuard<'a, T>where T: RefUnwindSafe,
impl<'a, T> Send for TimedGuard<'a, T>where T: Send,
impl<'a, T> Sync for TimedGuard<'a, T>where T: Sync,
impl<'a, T> Unpin for TimedGuard<'a, T>where T: Unpin,
impl<'a, T> UnwindSafe for TimedGuard<'a, T>where T: UnwindSafe,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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<T, A> DynAccess<T> for Awhere
A: Access<T>,
<A as Access<T>>::Guard: 'static,
impl<T, A> DynAccess<T> for Awhere A: Access<T>, <A as Access<T>>::Guard: '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> 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