Skip to main content

BoxedInterceptor

Type Alias BoxedInterceptor 

Source
pub type BoxedInterceptor = Box<dyn Interceptor>;
Expand description

An interceptor whose concrete type has been erased.

Interceptor is object safe, which is what lets a chain be a flat list of these rather than a tower of nested types. Name it when an application chooses an interceptor at runtime and hands the result to Registry::with_boxed.

Aliased Typeยง

pub struct BoxedInterceptor(/* private fields */);