iroh_metrics

Derive Macro MetricsGroupSet

Source
#[derive(MetricsGroupSet)]
{
    // Attributes available to this derive:
    #[metrics]
}
Expand description

Derives MetricsGroupSet for a struct.

All fields of the struct must be public and have a type of Arc<SomeType>, where SomeType implements MetricsGroup.