Struct hyper_timeout::TimeoutConnector [−][src]
pub struct TimeoutConnector<T> { /* fields omitted */ }
Expand description
A connector that enforces as connection timeout
Implementations
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> Connection for TimeoutConnector<T> where
T: AsyncRead + AsyncWrite + Connection + Service<Uri> + Send + Unpin,
T::Response: AsyncRead + AsyncWrite + Send + Unpin,
T::Future: Send + 'static,
T::Error: Into<Box<dyn Error + Send + Sync>>,
impl<T> Connection for TimeoutConnector<T> where
T: AsyncRead + AsyncWrite + Connection + Service<Uri> + Send + Unpin,
T::Response: AsyncRead + AsyncWrite + Send + Unpin,
T::Future: Send + 'static,
T::Error: Into<Box<dyn Error + Send + Sync>>,
The future response value.
Returns Poll::Ready(Ok(()))
when the service is able to process requests. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for TimeoutConnector<T> where
T: RefUnwindSafe,
impl<T> Send for TimeoutConnector<T> where
T: Send,
impl<T> Sync for TimeoutConnector<T> where
T: Sync,
impl<T> Unpin for TimeoutConnector<T> where
T: Unpin,
impl<T> UnwindSafe for TimeoutConnector<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more