[][src]Trait metrics_util::layers::Layer

pub trait Layer<R> {
    type Output;
    pub fn layer(&self, inner: R) -> Self::Output;
}

Decorates an object by wrapping it within another type.

Associated Types

type Output[src]

The output type after wrapping.

Loading content...

Required methods

pub fn layer(&self, inner: R) -> Self::Output[src]

Wraps inner based on this layer.

Loading content...

Implementors

impl<R> Layer<R> for FilterLayer[src]

type Output = Filter<R>

impl<R> Layer<R> for PrefixLayer[src]

type Output = Prefix<R>

Loading content...