pub struct ConnectionInfo {
pub transport_type: TransportType,
pub local_addr: Multiaddr,
pub remote_addr: Multiaddr,
pub is_encrypted: bool,
pub cipher_suite: String,
pub used_0rtt: bool,
pub established_at: Instant,
pub last_activity: Instant,
}
Expand description
Connection information
Fields§
§transport_type: TransportType
Transport type being used
local_addr: Multiaddr
Local address
remote_addr: Multiaddr
Remote address
is_encrypted: bool
Whether connection is encrypted
cipher_suite: String
Cipher suite being used
used_0rtt: bool
Whether 0-RTT was used
established_at: Instant
Connection establishment time
last_activity: Instant
Last activity timestamp
Trait Implementations§
Source§impl Clone for ConnectionInfo
impl Clone for ConnectionInfo
Source§fn clone(&self) -> ConnectionInfo
fn clone(&self) -> ConnectionInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ConnectionInfo
impl RefUnwindSafe for ConnectionInfo
impl Send for ConnectionInfo
impl Sync for ConnectionInfo
impl Unpin 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