[][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 { ... }
}

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.

Loading content...

Implementors

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 OutputQueue[src]

type SCOPE = OutputQueueScope

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

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

impl<T: Output + Send + Sync + 'static> Input for T[src]

type SCOPE = LockingOutput

Loading content...