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§
sourcetype SCOPE: InputScope + Send + Sync + 'static
type SCOPE: InputScope + Send + Sync + 'static
The type of Scope returned byt this input.