[−][src]Struct izanami_http::service::IntoService
A wrapper for HttpService
s for lifting the instance into a Service
.
Trait Implementations
impl<S: Debug> Debug for IntoService<S>
[src]
impl<S, RequestBody> Service<Request<RequestBody>> for IntoService<S> where
S: HttpService<RequestBody>,
RequestBody: HttpBody,
[src]
S: HttpService<RequestBody>,
RequestBody: HttpBody,
type Response = Response<S::ResponseBody>
Responses given by the service.
type Error = S::Error
Errors produced by the service.
type Future = S::Respond
The future response value.
fn poll_ready(&mut self) -> Poll<(), Self::Error>
[src]
fn call(&mut self, request: Request<RequestBody>) -> Self::Future
[src]
Auto Trait Implementations
impl<S> Send for IntoService<S> where
S: Send,
S: Send,
impl<S> Sync for IntoService<S> where
S: Sync,
S: Sync,
Blanket Implementations
impl<S, ReqBd, ResBd> HttpService for S where
ReqBd: HttpBody,
ResBd: HttpBody,
S: Service<Request<ReqBd>, Response = Response<ResBd>>,
[src]
ReqBd: HttpBody,
ResBd: HttpBody,
S: Service<Request<ReqBd>, Response = Response<ResBd>>,
type ResponseBody = ResBd
The type of HTTP response returned from respond
.
type Error = <S as Service<Request<ReqBd>>>::Error
The error type which will be returned from this service.
type Respond = <S as Service<Request<ReqBd>>>::Future
The future that handles an incoming HTTP request.
fn poll_ready(&mut Self) -> Result<Async<()>, <S as HttpService<ReqBd>>::Error>
[src]
fn respond(&mut Self, Request<ReqBd>) -> <S as HttpService<ReqBd>>::Respond
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<S, Req> ServiceExt for S where
S: Service<Req>,
[src]
S: Service<Req>,
fn service_map<F, Res>(self, f: F) -> Map<Self, F> where
F: Fn(Self::Response) -> Res + Clone,
[src]
F: Fn(Self::Response) -> Res + Clone,
Maps the response value returned from this service into a different type using the specified function.
fn service_map_err<F, E>(self, f: F) -> MapErr<Self, F> where
F: Fn(Self::Error) -> E + Clone,
[src]
F: Fn(Self::Error) -> E + Clone,
Maps the error value produced by this service into a different type using the specified function.
fn service_err_into<E>(self) -> ErrInto<Self, E> where
Self::Error: Into<E>,
[src]
Self::Error: Into<E>,
Converts the error value produced by this service into a different type.
fn service_and_then<F, R>(self, f: F) -> AndThen<Self, F> where
F: Fn(Self::Response) -> R + Clone,
R: IntoFuture<Error = Self::Error>,
[src]
F: Fn(Self::Response) -> R + Clone,
R: IntoFuture<Error = Self::Error>,
Executes the future returned from the specified function when this service returns a response.
fn service_join<S>(self, service: S) -> Join<Self, S> where
Req: Clone,
S: Service<Req, Error = Self::Error>,
[src]
Req: Clone,
S: Service<Req, Error = Self::Error>,
Combines this service with the the specified one. Read more
impl<S, T, Req> IntoService for S where
S: Service<Req>,
[src]
S: Service<Req>,