Struct TimeoutLayer
pub struct TimeoutLayer { /* private fields */ }
Applies a timeout to requests via the supplied inner service.
Implementations
impl TimeoutLayer
const fn new(timeout: Duration) -> SelfCreate a timeout from a duration
Trait Implementations
impl Clone for TimeoutLayer
fn clone(&self) -> Self
impl Debug for TimeoutLayer
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<S> Layer<S> for TimeoutLayer
type Service = Timeout<S>;fn layer(&self, service: S) -> Self::Service