Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Remove incorrect return info #316

Merged
merged 1 commit into from
Jul 27, 2022
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