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

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

Applies a timeout to requests.

Implementations

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

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

Trait Implementations

impl<S: Clone, Req: Clone> Clone for TimeoutService<S, Req>[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]

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.

Auto Trait Implementations

impl<S, Req> RefUnwindSafe for TimeoutService<S, Req> where
    Req: RefUnwindSafe,
    S: RefUnwindSafe
[src]

impl<S, Req> Send for TimeoutService<S, Req> where
    Req: Send,
    S: Send
[src]

impl<S, Req> Sync for TimeoutService<S, Req> where
    Req: Sync,
    S: Sync
[src]

impl<S, Req> Unpin for TimeoutService<S, Req> where
    Req: Unpin,
    S: Unpin
[src]

impl<S, Req> UnwindSafe for TimeoutService<S, Req> where
    Req: UnwindSafe,
    S: UnwindSafe
[src]

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<S, Req> IntoService<S, Req> for S where
    S: Service<Req>, 
[src]

impl<S, Req> ServiceExt<Req> for S where
    S: Service<Req>, 
[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.