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

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

Provided Methods§

source

fn into_async(self) -> AsyncLayer<Self, S>where Self: Sized,

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

Implementors§

source§

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