Struct tower_async_bridge::AsyncServiceWrapper
source · pub struct AsyncServiceWrapper<S> { /* private fields */ }
Expand description
A wrapper around a tower_service::Service
that implements
tower_async_service::Service
.
Implementations§
source§impl<S> AsyncServiceWrapper<S>
impl<S> AsyncServiceWrapper<S>
sourcepub fn new(inner: S) -> Self
pub fn new(inner: S) -> Self
Create a new AsyncServiceWrapper
wrapping inner
.
Trait Implementations§
source§impl<S> Clone for AsyncServiceWrapper<S>where
S: Clone,
impl<S> Clone for AsyncServiceWrapper<S>where S: Clone,
source§impl<S: Debug> Debug for AsyncServiceWrapper<S>
impl<S: Debug> Debug for AsyncServiceWrapper<S>
source§impl<S, Request> Service<Request> for AsyncServiceWrapper<S>where
S: Service<Request>,
impl<S, Request> Service<Request> for AsyncServiceWrapper<S>where S: Service<Request>,
Auto Trait Implementations§
impl<S> !RefUnwindSafe for AsyncServiceWrapper<S>
impl<S> Send for AsyncServiceWrapper<S>where S: Send,
impl<S> Sync for AsyncServiceWrapper<S>where S: Send,
impl<S> Unpin for AsyncServiceWrapper<S>
impl<S> !UnwindSafe for AsyncServiceWrapper<S>
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<S, Request> ClassicServiceExt<Request> for Swhere
S: Service<Request>,
impl<S, Request> ClassicServiceExt<Request> for Swhere S: Service<Request>,
source§fn into_classic(self) -> ClassicServiceWrapper<Self>where
Self: Sized,
fn into_classic(self) -> ClassicServiceWrapper<Self>where Self: Sized,
Turn this
tower::Service
into an async tower_async_service::Service
.