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

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

Deprecated since 0.7.2:

Use metrics()

impl Input for Log[src]

type SCOPE = LogScope

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

Deprecated since 0.7.2:

Use metrics()

impl Input for MultiInput[src]

type SCOPE = MultiInputScope

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

Deprecated since 0.7.2:

Use metrics()

impl Input for OutputQueue[src]

type SCOPE = OutputQueueScope

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

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

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

Deprecated since 0.7.2:

Use metrics()

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

type SCOPE = LockingOutput

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

Deprecated since 0.7.2:

Use metrics()

Loading content...