Skip to main content

MetricsUpdate

Trait MetricsUpdate 

Source
pub trait MetricsUpdate:
    Send
    + Sync
    + 'static {
    type Error: Debug;

    const NAME: &'static str;

    // Required method
    fn update(&mut self) -> Result<(), Self::Error>;
}
Expand description

Behavior to update metrics.

Required Associated Constants§

Source

const NAME: &'static str

A human-readable name.

Required Associated Types§

Source

type Error: Debug

Error type to indicate updating failed.

Required Methods§

Source

fn update(&mut self) -> Result<(), Self::Error>

Update the metrics.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§