Function gotham::state::request_id::request_id
[−]
[src]
pub fn request_id(state: &State) -> &str
Returns the unique Id associated with the current request.
This is very useful for logging/correlating events across distributed systems.
Panics
Will panic if the Gotham Router
has not already populated State
with a value for RequestId
prior to handling control to middleware pipelines and application handlers.