[][src]Struct actix_utils::timeout::TimeoutService

pub struct TimeoutService<S> { /* fields omitted */ }

Applies a timeout to requests.

Methods

impl<S> TimeoutService<S> where
    S: Service
[src]

pub fn new<U>(timeout: Duration, service: U) -> Self where
    U: IntoService<S>, 
[src]

Trait Implementations

impl<S: Clone> Clone for TimeoutService<S>[src]

impl<S: Debug> Debug for TimeoutService<S>[src]

impl<S> Service for TimeoutService<S> where
    S: Service
[src]

type Request = S::Request

Requests handled by the service.

type Response = S::Response

Responses given by the service.

type Error = TimeoutError<S::Error>

Errors produced by the service.

type Future = TimeoutServiceResponse<S>

The future response value.

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoService<T> for T where
    T: Service
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.