[][src]Struct tower_hyper::client::Connection

pub struct Connection<B> where
    B: HttpBody
{ /* fields omitted */ }

The connection provided from hyper

This provides an interface for DirectService that will drive the inner service via poll_service and can send requests via call.

Trait Implementations

impl<B: Debug> Debug for Connection<B> where
    B: HttpBody
[src]

impl<B> Service<Request<B>> for Connection<B> where
    B: HttpBody + Send + 'static,
    B::Data: Send,
    B::Error: Into<Box<dyn Error + Send + Sync>>, 
[src]

type Response = Response<Body>

Responses given by the service.

type Error = Error

Errors produced by the service.

type Future = ResponseFuture<ResponseFuture>

The future response value.

Auto Trait Implementations

impl<B> Sync for Connection<B> where
    B: Send

impl<B> Send for Connection<B> where
    B: Send

impl<B> Unpin for Connection<B>

impl<B> !RefUnwindSafe for Connection<B>

impl<B> !UnwindSafe for Connection<B>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T, B1, B2> HttpService<B1> for T where
    B2: Body,
    T: Service<Request<B1>, Response = Response<B2>>, 
[src]

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 into_service(self) -> IntoService<Self>[src]

Wrap the HttpService so that it implements tower_service::Service directly. Read more

fn as_service(&mut self) -> AsService<Self>[src]

Same as into_service but operates on an HttpService reference.