Struct sozu_lib::network::SessionMetrics [−][src]
pub struct SessionMetrics {
pub start: Option<SteadyTime>,
pub service_time: Duration,
pub bin: usize,
pub bout: usize,
pub service_start: Option<SteadyTime>,
pub backend_id: Option<String>,
pub backend_start: Option<SteadyTime>,
pub backend_stop: Option<SteadyTime>,
pub backend_bin: usize,
pub backend_bout: usize,
}Fields
start: Option<SteadyTime>
date at which we started handling that request
service_time: Duration
time actually spent handling the request
bin: usize
bytes received by the frontend
bout: usize
bytes sent by the frontend
service_start: Option<SteadyTime>
date at which we started working on the request
backend_id: Option<String>
backend_start: Option<SteadyTime>
backend_stop: Option<SteadyTime>
backend_bin: usize
backend_bout: usize
Methods
impl SessionMetrics[src]
impl SessionMetricspub fn new() -> SessionMetrics[src]
pub fn new() -> SessionMetricspub fn reset(&mut self)[src]
pub fn reset(&mut self)pub fn start(&mut self)[src]
pub fn start(&mut self)pub fn service_start(&mut self)[src]
pub fn service_start(&mut self)pub fn service_stop(&mut self)[src]
pub fn service_stop(&mut self)pub fn service_time(&self) -> Duration[src]
pub fn service_time(&self) -> Durationpub fn response_time(&self) -> Duration[src]
pub fn response_time(&self) -> Durationpub fn backend_start(&mut self)[src]
pub fn backend_start(&mut self)pub fn backend_stop(&mut self)[src]
pub fn backend_stop(&mut self)pub fn backend_response_time(&self) -> Option<Duration>[src]
pub fn backend_response_time(&self) -> Option<Duration>Trait Implementations
impl Clone for SessionMetrics[src]
impl Clone for SessionMetricsfn clone(&self) -> SessionMetrics[src]
fn clone(&self) -> SessionMetricsReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for SessionMetrics[src]
impl Debug for SessionMetricsAuto Trait Implementations
impl Send for SessionMetrics
impl Send for SessionMetricsimpl Sync for SessionMetrics
impl Sync for SessionMetrics