Struct solana_metrics::TokenCounter
source · pub struct TokenCounter(_);
Expand description
A helper that sends the count of created tokens as a datapoint.
Implementations
sourceimpl TokenCounter
impl TokenCounter
sourcepub fn create_token(&self) -> CounterToken
pub fn create_token(&self) -> CounterToken
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
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more