pub struct TimeoutService<S> { /* private fields */ }Expand description
Applies a timeout to requests.
Implementations
Trait Implementations
type Error = TimeoutError<S::Error>
type Error = TimeoutError<S::Error>
Errors produced by the service.
The future response value.
Returns Ready when the service is able to process requests. Read more
Shutdown service. Read more
Process the request and return the response asynchronously. Read more
Map this service’s output to a different type, returning a new service of the resulting type. Read more
Auto Trait Implementations
impl<S> RefUnwindSafe for TimeoutService<S> where
S: RefUnwindSafe,
impl<S> Send for TimeoutService<S> where
S: Send,
impl<S> Sync for TimeoutService<S> where
S: Sync,
impl<S> Unpin for TimeoutService<S> where
S: Unpin,
impl<S> UnwindSafe for TimeoutService<S> where
S: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert to a Service