pub struct CommonStats {
pub process_start_time: DateTime<Local>,
pub process_end_time: DateTime<Local>,
pub method: Method,
pub uri: Uri,
pub status_code: Option<StatusCode>,
pub req_size: i64,
pub resp_size: i64,
pub is_error: bool,
}Available on crate features
client and server only.Expand description
Shared HTTP statistics captured for every request on both client and server sides
Fields§
§process_start_time: DateTime<Local>The time at which request processing began
process_end_time: DateTime<Local>The time at which request processing completed
method: MethodThe HTTP method of the request (e.g. GET, POST)
uri: UriThe full URI of the request
status_code: Option<StatusCode>The HTTP status code of the response.
Status code may be None if the service failed
req_size: i64Size of the request body in bytes
resp_size: i64Size of the response body in bytes
is_error: boolWhether the request resulted in an error
Trait Implementations§
Source§impl Clone for CommonStats
impl Clone for CommonStats
Source§fn clone(&self) -> CommonStats
fn clone(&self) -> CommonStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommonStats
impl Debug for CommonStats
Source§impl Default for CommonStats
impl Default for CommonStats
Source§fn default() -> CommonStats
fn default() -> CommonStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for CommonStats
impl RefUnwindSafe for CommonStats
impl Send for CommonStats
impl Sync for CommonStats
impl Unpin for CommonStats
impl UnsafeUnpin for CommonStats
impl UnwindSafe for CommonStats
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more