Struct gotham::middleware::timer::RequestTimer [−][src]
pub struct RequestTimer;
Expand description
Middleware binding to attach request execution times inside headers.
This can be used to easily measure request time from outside the
application, via the x-runtime-duration
header in the response.
Trait Implementations
Middleware
trait implementation.
NewMiddleware
trait implementation.
Clones the current middleware to a new instance.
type Instance = Self
type Instance = Self
The type of Middleware
created by the NewMiddleware
.
Auto Trait Implementations
impl RefUnwindSafe for RequestTimer
impl Send for RequestTimer
impl Sync for RequestTimer
impl Unpin for RequestTimer
impl UnwindSafe for RequestTimer
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more