pub struct RequestTimer { /* private fields */ }Expand description
Timer for measuring request duration
Implementations§
Source§impl RequestTimer
impl RequestTimer
Sourcepub fn start(
method: impl Into<String>,
metrics: Arc<MetricsCollector>,
) -> RequestTimer
pub fn start( method: impl Into<String>, metrics: Arc<MetricsCollector>, ) -> RequestTimer
Start a new request timer
Auto Trait Implementations§
impl Freeze for RequestTimer
impl !RefUnwindSafe for RequestTimer
impl Send for RequestTimer
impl Sync for RequestTimer
impl Unpin for RequestTimer
impl !UnwindSafe for RequestTimer
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