[][src]Struct tower::timeout::TimeoutLayer

pub struct TimeoutLayer { /* fields omitted */ }

Applies a timeout to requests via the supplied inner service.

Methods

impl TimeoutLayer[src]

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

Create a timeout from a duration

Trait Implementations

impl Debug for TimeoutLayer[src]

impl<S> Layer<S> for TimeoutLayer[src]

type Service = Timeout<S>

The wrapped service

Auto Trait Implementations

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, 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.