[][src]Trait dipstick::Input

pub trait Input: Send + Sync + 'static + InputDyn {
    type SCOPE: InputScope + Send + Sync + 'static;
    fn metrics(&self) -> Self::SCOPE;

    fn input(&self) -> Self::SCOPE { ... }
fn new_scope(&self) -> Self::SCOPE { ... } }

A function trait that opens a new metric capture scope.

Associated Types

type SCOPE: InputScope + Send + Sync + 'static

The type of Scope returned byt this input.

Loading content...

Required methods

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

Open a new scope from this input.

Loading content...

Provided methods

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

👎 Deprecated since 0.7.2:

Use metrics()

Open a new scope from this input.

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

👎 Deprecated since 0.8.0:

Use metrics()

Open a new scope from this input.

Loading content...

Implementors

impl Input for Graphite[src]

type SCOPE = GraphiteScope

impl Input for InputQueue[src]

type SCOPE = InputQueueScope

fn metrics(&self) -> Self::SCOPE[src]

Wrap new scopes with an asynchronous metric write & flush dispatcher.

impl Input for Log[src]

type SCOPE = LogScope

impl Input for MultiInput[src]

type SCOPE = MultiInputScope

impl Input for Prometheus[src]

type SCOPE = PrometheusScope

impl Input for Statsd[src]

type SCOPE = StatsdScope

impl Input for Void[src]

type SCOPE = VoidInput

impl<W: Write + Send + Sync + 'static> Input for Stream<W>[src]

type SCOPE = TextScope<W>

Loading content...