async fn on_request(&self, request: &mut Request<'_>, _: &mut Data) {
        // Store a `TimerStart` instead of directly storing a `SystemTime`
        // to ensure that this usage doesn't conflict with anything else
        // that might store a `SystemTime` in request-local cache.
        request.local_cache(|| TimerStart(Some(SystemTime::now())));
        INCOMING_REQUESTS.inc();
    }
/// Stores the start time of the request in request-local state.
Stores the start time of the request in request-local state.
Stores the start time of the request in request - local state .
async fn on_request(&self, request: &mut Request<'_>, _: &mut Data) {
        // Store a `TimerStart` instead of directly storing a `SystemTime`
        // to ensure that this usage doesn't conflict with anything else
        // that might store a `SystemTime` in request-local cache.
        request.local_cache(|| TimerStart(Some(SystemTime::now())));
        INCOMING_REQUESTS.inc();
    }
async fn on_request ( & self , request : & mut Request < ' _ > , _ : & mut Data ) { // Store a `TimerStart` instead of directly storing a `SystemTime` // to ensure that this usage doesn't conflict with anything else // that might store a `SystemTime` in request-local cache. request . local_cache ( | | TimerStart ( Some ( SystemTime :: now ( ) ) ) ) ; INCOMING_REQUESTS . inc ( ) ; }
Stores the start time of the request in request-local state.
Stores the start time of the request in request - local state .
&self
request
&mut Data