pub trait FilterFactory<F>: Sized {
    type Filter: FilterLayer;
    type Error: Debug;
    type Future: Future<Output = Result<Io<Layer<Self::Filter, F>>, Self::Error>>;

    // Required method
    fn create(self, st: Io<F>) -> Self::Future;
}
Expand description

Creates new Filter values.

Required Associated Types§

source

type Filter: FilterLayer

The Filter value created by this factory

source

type Error: Debug

Errors produced while building a filter.

source

type Future: Future<Output = Result<Io<Layer<Self::Filter, F>>, Self::Error>>

The future of the FilterFactory instance.

Required Methods§

source

fn create(self, st: Io<F>) -> Self::Future

Create and return a new filter value asynchronously.

Implementors§