pub struct ConnectionInfo {
pub peer_addr: SocketAddr,
pub connected_at: Instant,
pub bytes_received: u64,
pub bytes_sent: u64,
pub last_activity: Instant,
}Expand description
Connection information tracking
Fields§
§peer_addr: SocketAddrPeer address captured at accept/connect time (never re-queried).
connected_at: InstantInstant the connection entered the pool.
bytes_received: u64Bytes received on this connection.
bytes_sent: u64Bytes sent on this connection.
last_activity: InstantInstant of the most recent recorded activity.
Trait Implementations§
Source§impl Clone for ConnectionInfo
impl Clone for ConnectionInfo
Auto Trait Implementations§
impl Freeze for ConnectionInfo
impl RefUnwindSafe for ConnectionInfo
impl Send for ConnectionInfo
impl Sync for ConnectionInfo
impl Unpin for ConnectionInfo
impl UnsafeUnpin for ConnectionInfo
impl UnwindSafe for ConnectionInfo
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