Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions metrics/src/handles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ use crate::IntoF64;
/// A counter handler.
pub trait CounterFn {
/// Increments the counter by the given amount.
///
/// Returns the previous value.
fn increment(&self, value: u64);

/// Sets the counter to at least the given amount.
Expand All @@ -20,26 +18,18 @@ pub trait CounterFn {
///
/// This method must cope with those cases. An example of doing so atomically can be found in
/// `AtomicCounter`.
///
/// Returns the previous value.
fn absolute(&self, value: u64);
}

/// A gauge handler.
pub trait GaugeFn {
/// Increments the gauge by the given amount.
///
/// Returns the previous value.
fn increment(&self, value: f64);

/// Decrements the gauge by the given amount.
///
/// Returns the previous value.
fn decrement(&self, value: f64);

/// Sets the gauge to the given amount.
///
/// Returns the previous value.
fn set(&self, value: f64);
}

Expand Down