s2n-quic-core 0.81.0

Internal crate used by s2n-quic
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

pub use super::generated::metrics::*;

pub mod aggregate;

/// A Recorder should arrange to emit the properties and counters on Drop into some output.
pub trait Recorder: 'static + Send + Sync {
    /// Registers a counter with the recorder instance
    fn increment_counter(&self, name: &str, amount: usize);

    /// Associates a key/value pair with the recorder instance
    fn set_value<V: core::fmt::Display>(&self, key: &str, value: V);
}