Struct actix_utils::timeout::Timeout [−][src]
pub struct Timeout<E = ()> { /* fields omitted */ }
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.
type InitError = E
type InitError = E
Errors produced while building a transform service.
type Transform = TimeoutService<S>
type Transform = TimeoutService<S>
The TransformService
value created by this factory
Creates and returns a new Transform component, asynchronously
fn map_init_err<F, E>(self, f: F) -> TransformMapInitErr<Self, S, F, E> where
F: Fn(Self::InitError) -> E + Clone,
fn map_init_err<F, E>(self, f: F) -> TransformMapInitErr<Self, S, F, E> where
F: Fn(Self::InitError) -> E + Clone,
Map this transforms’s factory error to a different error, returning a new transform service factory. Read more
Auto Trait Implementations
impl<E> RefUnwindSafe for Timeout<E> where
E: RefUnwindSafe,
impl<E> UnwindSafe for Timeout<E> where
E: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more