pub struct MakeService<T, RC> { /* private fields */ }
Implementations§
Source§impl<T, RC> MakeService<T, RC>
impl<T, RC> MakeService<T, RC>
Trait Implementations§
Source§impl<'a, T, SC, RC> MakeService<&'a SC> for MakeService<T, RC>
impl<'a, T, SC, RC> MakeService<&'a SC> for MakeService<T, RC>
Source§type ReqBody = ContextualPayload<Body, RC>
type ReqBody = ContextualPayload<Body, RC>
The
Payload
body of the http::Request
.Source§type Future = FutureResult<<MakeService<T, RC> as MakeService<&'a SC>>::Service, <MakeService<T, RC> as MakeService<&'a SC>>::MakeError>
type Future = FutureResult<<MakeService<T, RC> as MakeService<&'a SC>>::Service, <MakeService<T, RC> as MakeService<&'a SC>>::MakeError>
The future returned from
new_service
of a Service
.Source§fn make_service(&mut self, _ctx: &'a SC) -> Self::Future
fn make_service(&mut self, _ctx: &'a SC) -> Self::Future
Create a new
Service
.Auto Trait Implementations§
impl<T, RC> Freeze for MakeService<T, RC>where
T: Freeze,
impl<T, RC> RefUnwindSafe for MakeService<T, RC>where
T: RefUnwindSafe,
RC: RefUnwindSafe,
impl<T, RC> Send for MakeService<T, RC>
impl<T, RC> Sync for MakeService<T, RC>
impl<T, RC> Unpin for MakeService<T, RC>
impl<T, RC> UnwindSafe for MakeService<T, RC>where
T: UnwindSafe,
RC: 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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more