pub trait IdentityHandlerFactory<I> {
    type Filter: IdentityHandler<I>;

    // Required method
    fn spawn(&self) -> Self::Filter;
}
Expand description

A type that can produce IdentityHandler filters for ids of type I.

See the module-level documentation for details.

Required Associated Types§

source

type Filter: IdentityHandler<I>

The type of filter this factory constructs.

“Filter” and “handler” seem to both mean the same thing here: something that can produce true ids from proto-ids.

Required Methods§

source

fn spawn(&self) -> Self::Filter

Create an IdentityHandler<I> implementation that can transform proto-ids into ids of type I.

Implementors§