pub trait ClassicLayerExt<S>: Layer<S> {
    // Provided method
    fn into_classic(self) -> ClassicLayer<Self, S>
       where Self: Sized { ... }
}
Expand description

ClassicLayerExt adds a method to any tower_async_layer::Layer that wraps it in a ClassicLayer so that it can be used within a tower_layer::Layer environment.

Provided Methods§

source

fn into_classic(self) -> ClassicLayer<Self, S>where Self: Sized,

Wrap a tower_async_layer::Layer, so that it can be used within a tower_layer::Layer environment.

Implementors§

source§

impl<L, S> ClassicLayerExt<S> for Lwhere L: Layer<S> + Sized,