Struct solana_metrics::TokenCounter [−][src]
pub struct TokenCounter(_);
Expand description
A helper that sends the count of created tokens as a datapoint.
Implementations
Creates a new token for this counter. The metric’s value will be equal
to the number of CounterToken
s.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TokenCounter
impl Send for TokenCounter
impl Sync for TokenCounter
impl Unpin for TokenCounter
impl UnwindSafe for TokenCounter
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more