Struct TimeoutLayer
struct TimeoutLayer { ... }
Applies a timeout to requests via the supplied inner service.
Implementations
impl TimeoutLayer
const fn new(timeout: Duration) -> SelfCreate a timeout from a duration
impl Clone for TimeoutLayer
fn clone(self: &Self) -> TimeoutLayer
impl Debug for TimeoutLayer
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl Freeze for TimeoutLayer
impl RefUnwindSafe for TimeoutLayer
impl Send for TimeoutLayer
impl Sync for TimeoutLayer
impl Unpin for TimeoutLayer
impl UnsafeUnpin for TimeoutLayer
impl UnwindSafe for TimeoutLayer
impl<S> Layer for TimeoutLayer
fn layer(self: &Self, service: S) -> <Self as >::Service
impl<T> Any for TimeoutLayer
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for TimeoutLayer
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for TimeoutLayer
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for TimeoutLayer
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for TimeoutLayer
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for TimeoutLayer
impl<T> ToOwned for TimeoutLayer
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T> WithSubscriber for TimeoutLayer
impl<T, U> Into for TimeoutLayer
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for TimeoutLayer
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for TimeoutLayer
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>