ServeSummary
pub struct ServeSummary<E> { /* private fields */ }A summary of information from running Serve.
Methods
error
View sourceInspect the error returned by the handler that caused Serve to stop.
Parameters
- self: &Self
Returns
Option<&E>
requests
View sourcefn requests(&self) -> usizeReturns how many requests were processed by Serve.
Parameters
- self: &Self
Returns
usize
time_handler
View sourcefn time_handler(&self) -> DurationReturns the total amount of time that Serve spent running the handler callback.
Parameters
- self: &Self
Returns
time_waited
View sourcefn time_waited(&self) -> DurationReturns the total amount of time that Serve spent waiting for another request.
Parameters
- self: &Self
Returns