Trait tower_async_bridge::AsyncLayerExt
source · 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§
sourcefn into_async(self) -> AsyncLayer<Self, S>where
Self: Sized,
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.