[−][src]Struct tower_http_util::service::IntoService
Wraps an HttpService
instance, implementing tower_service::Service
.
See into_service
function documentation for more details.
Trait Implementations
impl<T: Debug> Debug for IntoService<T>
[src]
impl<T, ReqBody> Service<Request<ReqBody>> for IntoService<T> where
T: HttpService<ReqBody>,
[src]
T: HttpService<ReqBody>,
Auto Trait Implementations
impl<T> Send for IntoService<T> where
T: Send,
T: Send,
impl<T> Sync for IntoService<T> where
T: Sync,
T: Sync,
Blanket Implementations
impl<T, B1, B2> HttpService<B1> for T where
B2: Body,
T: Service<Request<B1>, Response = Response<B2>>,
[src]
B2: Body,
T: Service<Request<B1>, Response = Response<B2>>,
type ResponseBody = B2
Response payload.
type Error = <T as Service<Request<B1>>>::Error
Errors produced by the service.
type Future = <T as Service<Request<B1>>>::Future
The future response value.
fn poll_ready(&mut Self) -> Result<Async<()>, <T as HttpService<B1>>::Error>
[src]
fn call(&mut Self, Request<B1>) -> <T as HttpService<B1>>::Future
[src]
fn into_service(self) -> IntoService<Self> where
Self: Sized,
[src]
Self: Sized,
Wrap the HttpService so that it implements tower_service::Service directly. Read more
fn as_service(&mut self) -> AsService<Self> where
Self: Sized,
[src]
Self: Sized,
Same as into_service
but operates on an HttpService reference.
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> 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, U> TryInto<U> 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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,