Struct hyper_timeout::TimeoutConnector [] [src]

pub struct TimeoutConnector<T> { /* fields omitted */ }

A connector that enforces as connection timeout

Methods

impl<T: Connect> TimeoutConnector<T>
[src]

Construct a new TimeoutConnector with a given connector implementing the Connect trait

Set the timeout for connecting to a URL.

Default is no timeout.

Set the timeout for the response.

Default is no timeout.

Set the timeout for the request.

Default is no timeout.

Trait Implementations

impl<T: Debug> Debug for TimeoutConnector<T>
[src]

Formats the value using the given formatter.

impl<T> Service for TimeoutConnector<T> where
    T: Service<Error = Error> + 'static,
    T::Response: AsyncRead + AsyncWrite,
    T::Future: Future<Error = Error>, 
[src]

Requests handled by the service.

Responses given by the service.

Errors produced by the service.

The future response value.

Process the request and return the response asynchronously.