pub struct ClientStats {
pub bytes_in: u64,
pub bytes_out: u64,
pub last_connected: Option<DateTime<Utc>>,
pub total_connections: u64,
pub last_handshake: Option<DateTime<Utc>>,
}Expand description
Per-client traffic statistics
Fields§
§bytes_in: u64§bytes_out: u64§last_connected: Option<DateTime<Utc>>§total_connections: u64§last_handshake: Option<DateTime<Utc>>Trait Implementations§
Source§impl Clone for ClientStats
impl Clone for ClientStats
Source§fn clone(&self) -> ClientStats
fn clone(&self) -> ClientStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ClientStats
impl Debug for ClientStats
Source§impl Default for ClientStats
impl Default for ClientStats
Source§fn default() -> ClientStats
fn default() -> ClientStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClientStats
impl<'de> Deserialize<'de> for ClientStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ClientStats
impl RefUnwindSafe for ClientStats
impl Send for ClientStats
impl Sync for ClientStats
impl Unpin for ClientStats
impl UnsafeUnpin for ClientStats
impl UnwindSafe for ClientStats
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