Struct tower_async_bridge::ClassicLayer
source · pub struct ClassicLayer<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 ClassicLayerExt::into_classic.
Implementations§
source§impl<L, S> ClassicLayer<L, S>
impl<L, S> ClassicLayer<L, S>
sourcepub fn new(inner: L) -> Self
pub fn new(inner: L) -> Self
Create a new ClassicLayer wrapping inner
.
Trait Implementations§
source§impl<L, S> Clone for ClassicLayer<L, S>where
L: Clone,
impl<L, S> Clone for ClassicLayer<L, S>where L: Clone,
source§impl<L, S> Debug for ClassicLayer<L, S>where
L: Debug,
impl<L, S> Debug for ClassicLayer<L, S>where L: Debug,
source§impl<L, S> From<L> for ClassicLayer<L, S>where
L: Layer<S>,
impl<L, S> From<L> for ClassicLayer<L, S>where L: Layer<S>,
source§impl<L, S> Layer<S> for ClassicLayer<L, S>where
L: Layer<AsyncServiceWrapper<S>>,
impl<L, S> Layer<S> for ClassicLayer<L, S>where L: Layer<AsyncServiceWrapper<S>>,
§type Service = ClassicServiceWrapper<<L as Layer<AsyncServiceWrapper<S>>>::Service>
type Service = ClassicServiceWrapper<<L as Layer<AsyncServiceWrapper<S>>>::Service>
The wrapped service
Auto Trait Implementations§
impl<L, S> RefUnwindSafe for ClassicLayer<L, S>where L: RefUnwindSafe, S: RefUnwindSafe,
impl<L, S> Send for ClassicLayer<L, S>where L: Send, S: Send,
impl<L, S> Sync for ClassicLayer<L, S>where L: Sync, S: Sync,
impl<L, S> Unpin for ClassicLayer<L, S>where L: Unpin, S: Unpin,
impl<L, S> UnwindSafe for ClassicLayer<L, S>where L: UnwindSafe, S: UnwindSafe,
Blanket Implementations§
source§impl<L, S> AsyncLayerExt<S> for Lwhere
L: Layer<S>,
impl<L, S> AsyncLayerExt<S> for Lwhere L: Layer<S>,
source§fn 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.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