pub struct ConnectionInfo {
pub id: ConnId,
pub label: String,
pub protocol: Protocol,
pub source: String,
pub destination: String,
pub started_at: Instant,
pub bytes_in: Arc<AtomicU64>,
pub bytes_out: Arc<AtomicU64>,
}Expand description
Live view of one active (or just-closed) connection, cheap to clone since the byte counters are shared atomics updated by the pump loop as data flows.
Fields§
§id: ConnId§label: String§protocol: Protocol§source: String§destination: String§started_at: Instant§bytes_in: Arc<AtomicU64>§bytes_out: Arc<AtomicU64>Implementations§
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