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

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

Creates new Filter values.

Required Associated Types§

The Filter value created by this factory

Errors produced while building a filter.

The future of the FilterFactory instance.

Required Methods§

Create and return a new filter value asynchronously.

Implementors§