pub struct ConnectionStats {
pub connection_id: ConnectionId,
pub state: ConnectionState,
pub remote_addr: SocketAddr,
pub is_initiator: bool,
pub send_window_used: usize,
pub receive_buffer_len: usize,
pub time_in_state: Duration,
pub last_activity: Duration,
}Expand description
Connection statistics
Fields§
§connection_id: ConnectionIdConnection identifier
state: ConnectionStateCurrent state
remote_addr: SocketAddrRemote peer address
is_initiator: boolWhether we initiated
send_window_used: usizeSend window utilization
receive_buffer_len: usizeReceive buffer length
time_in_state: DurationTime in current state
last_activity: DurationTime since last activity
Trait Implementations§
Source§impl Clone for ConnectionStats
impl Clone for ConnectionStats
Source§fn clone(&self) -> ConnectionStats
fn clone(&self) -> ConnectionStats
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 moreAuto Trait Implementations§
impl Freeze for ConnectionStats
impl RefUnwindSafe for ConnectionStats
impl Send for ConnectionStats
impl Sync for ConnectionStats
impl Unpin for ConnectionStats
impl UnsafeUnpin for ConnectionStats
impl UnwindSafe for ConnectionStats
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