pub struct Timeit<S, TimeSink> { /* private fields */ }
Expand description
A middleware that times how long it takes the downstream service S
to
respond to a request with a response. The recorded time::Duration
s are
passed to the TimeSink
.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<S, TimeSink> Freeze for Timeit<S, TimeSink>
impl<S, TimeSink> RefUnwindSafe for Timeit<S, TimeSink>where
S: RefUnwindSafe,
TimeSink: RefUnwindSafe,
impl<S, TimeSink> Send for Timeit<S, TimeSink>
impl<S, TimeSink> Sync for Timeit<S, TimeSink>
impl<S, TimeSink> Unpin for Timeit<S, TimeSink>
impl<S, TimeSink> UnwindSafe for Timeit<S, TimeSink>where
S: UnwindSafe,
TimeSink: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more