Trait LayerExt

Source
pub trait LayerExt<L>: Sealed {
    // Required method
    fn named_layer<S>(&self, service: S) -> Layered<L::Service, S>
       where L: Layer<S>;
}
Expand description

Extension trait which adds utility methods to types which implement tower_layer::Layer.

Required Methods§

Source

fn named_layer<S>(&self, service: S) -> Layered<L::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in Layered.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<L> LayerExt<L> for L