Struct tower_async_bridge::AsyncLayer
source · pub struct AsyncLayer<L, S> { /* private fields */ }
Expand description
A wrapper around a tower_layer::Layer
that implements
tower_async_layer::Layer
and is the type returned
by AsyncLayerExt::into_async.
Implementations§
source§impl<L, S> AsyncLayer<L, S>
impl<L, S> AsyncLayer<L, S>
sourcepub fn new(inner: L) -> Self
pub fn new(inner: L) -> Self
Create a new AsyncLayer wrapping inner
.
Trait Implementations§
source§impl<L, S> Clone for AsyncLayer<L, S>where
L: Clone,
impl<L, S> Clone for AsyncLayer<L, S>where L: Clone,
source§impl<L, S> Debug for AsyncLayer<L, S>where
L: Debug,
impl<L, S> Debug for AsyncLayer<L, S>where L: Debug,
source§impl<L, S> From<L> for AsyncLayer<L, S>where
L: Layer<S>,
impl<L, S> From<L> for AsyncLayer<L, S>where L: Layer<S>,
source§impl<L, S> Layer<S> for AsyncLayer<L, S>where
L: Layer<ClassicServiceWrapper<S>>,
impl<L, S> Layer<S> for AsyncLayer<L, S>where L: Layer<ClassicServiceWrapper<S>>,
§type Service = AsyncServiceWrapper<<L as Layer<ClassicServiceWrapper<S>>>::Service>
type Service = AsyncServiceWrapper<<L as Layer<ClassicServiceWrapper<S>>>::Service>
The wrapped service
Auto Trait Implementations§
impl<L, S> RefUnwindSafe for AsyncLayer<L, S>where L: RefUnwindSafe, S: RefUnwindSafe,
impl<L, S> Send for AsyncLayer<L, S>where L: Send, S: Send,
impl<L, S> Sync for AsyncLayer<L, S>where L: Sync, S: Sync,
impl<L, S> Unpin for AsyncLayer<L, S>where L: Unpin, S: Unpin,
impl<L, S> UnwindSafe for AsyncLayer<L, S>where L: UnwindSafe, S: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<L, S> ClassicLayerExt<S> for Lwhere
L: Layer<S>,
impl<L, S> ClassicLayerExt<S> for Lwhere L: Layer<S>,
source§fn into_classic(self) -> ClassicLayer<Self, S>where
Self: Sized,
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.