Trait dipstick::Input

source ·
pub trait Input: Send + Sync + 'static + InputDyn {
    type SCOPE: InputScope + Send + Sync + 'static;

    // Required method
    fn metrics(&self) -> Self::SCOPE;

    // Provided methods
    fn input(&self) -> Self::SCOPE { ... }
    fn new_scope(&self) -> Self::SCOPE { ... }
}
Expand description

A function trait that opens a new metric capture scope.

Required Associated Types§

source

type SCOPE: InputScope + Send + Sync + 'static

The type of Scope returned byt this input.

Required Methods§

source

fn metrics(&self) -> Self::SCOPE

Open a new scope from this input.

Provided Methods§

source

fn input(&self) -> Self::SCOPE

👎Deprecated since 0.7.2: Use metrics()

Open a new scope from this input.

source

fn new_scope(&self) -> Self::SCOPE

👎Deprecated since 0.8.0: Use metrics()

Open a new scope from this input.

Implementors§