pub trait Layer<H> {
type Handler;
// Required method
fn layer(&self, inner: H) -> Self::Handler;
}Expand description
A function from one handler to another. Apply with HandlerExt::with, or to one
registration with the layer step of the chain that mounts it.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".