pub struct Service<T, C>{ /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<T, C> Service<(Request<Body>, C)> for Service<T, C>
impl<T, C> Service<(Request<Body>, C)> for Service<T, C>
Source§type Future = Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Send + Sync>>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Send + Sync>>> + Send>>
The future response value.
Auto Trait Implementations§
impl<T, C> Freeze for Service<T, C>where
T: Freeze,
impl<T, C> RefUnwindSafe for Service<T, C>where
T: RefUnwindSafe,
C: RefUnwindSafe,
impl<T, C> Send for Service<T, C>
impl<T, C> Sync for Service<T, C>where
T: Sync,
impl<T, C> Unpin for Service<T, C>
impl<T, C> UnwindSafe for Service<T, C>where
T: UnwindSafe,
C: 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