Struct actix_utils::timeout::TimeoutService [−][src]
Applies a timeout to requests.
Implementations
impl<S, Req> TimeoutService<S, Req> where
S: Service<Req>,
[src]
S: Service<Req>,
pub fn new<U>(timeout: Duration, service: U) -> Self where
U: IntoService<S, Req>,
[src]
U: IntoService<S, Req>,
Trait Implementations
impl<S: Clone, Req: Clone> Clone for TimeoutService<S, Req>
[src]
fn clone(&self) -> TimeoutService<S, Req>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<S: Debug, Req: Debug> Debug for TimeoutService<S, Req>
[src]
impl<S, Req> Service<Req> for TimeoutService<S, Req> where
S: Service<Req>,
[src]
S: Service<Req>,
type Response = S::Response
Responses given by the service.
type Error = TimeoutError<S::Error>
Errors produced by the service when polling readiness or executing call.
type Future = TimeoutServiceResponse<S, Req>
The future response value.
fn poll_ready(&self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
[src]
fn call(&self, request: Req) -> Self::Future
[src]
Auto Trait Implementations
impl<S, Req> RefUnwindSafe for TimeoutService<S, Req> where
Req: RefUnwindSafe,
S: RefUnwindSafe,
[src]
Req: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, Req> Send for TimeoutService<S, Req> where
Req: Send,
S: Send,
[src]
Req: Send,
S: Send,
impl<S, Req> Sync for TimeoutService<S, Req> where
Req: Sync,
S: Sync,
[src]
Req: Sync,
S: Sync,
impl<S, Req> Unpin for TimeoutService<S, Req> where
Req: Unpin,
S: Unpin,
[src]
Req: Unpin,
S: Unpin,
impl<S, Req> UnwindSafe for TimeoutService<S, Req> where
Req: UnwindSafe,
S: UnwindSafe,
[src]
Req: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<S, Req> IntoService<S, Req> for S where
S: Service<Req>,
[src]
S: Service<Req>,
pub fn into_service(self) -> S
[src]
impl<S, Req> ServiceExt<Req> for S where
S: Service<Req>,
[src]
S: Service<Req>,
pub fn map<F, R>(self, f: F) -> Map<Self, F, Req, R> where
F: FnMut(Self::Response) -> R,
[src]
F: FnMut(Self::Response) -> R,
pub fn map_err<F, E>(self, f: F) -> MapErr<Self, Req, F, E> where
F: Fn(Self::Error) -> E,
[src]
F: Fn(Self::Error) -> E,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,