[][src]Struct actix_utils::timeout::Timeout

pub struct Timeout<E = ()> { /* fields omitted */ }

Applies a timeout to requests.

Methods

impl<E> Timeout<E>[src]

pub fn new(timeout: Duration) -> Self[src]

Trait Implementations

impl<E> Clone for Timeout<E>[src]

impl<E: Debug> Debug for Timeout<E>[src]

impl<S, E> Transform<S> for Timeout<E> 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 InitError = E

Errors produced while building a service.

type Transform = TimeoutService<S>

The TransformService value created by this factory

type Future = FutureResult<Self::Transform, Self::InitError>

The future response value.

Auto Trait Implementations

impl<E> Send for Timeout<E> where
    E: Send

impl<E> Sync for Timeout<E> where
    E: Sync

impl<E> Unpin for Timeout<E> where
    E: Unpin

impl<E> UnwindSafe for Timeout<E> where
    E: UnwindSafe

impl<E> RefUnwindSafe for Timeout<E> where
    E: RefUnwindSafe

Blanket Implementations

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

impl<T> From<T> for T[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.

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

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

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

impl<T, S> IntoTransform<T, S> for T where
    T: Transform<S>, 
[src]