Struct solana_metrics::TokenCounter
source[−]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
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