pub struct PeerInfo {
pub remote: SocketAddr,
pub alpn: Option<String>,
pub server_name: Option<String>,
}Expand description
What the handshake revealed about a peer, for logging.
Fields§
§remote: SocketAddrThe peer’s address. Behind a UDP relay this is the relay’s address.
alpn: Option<String>The negotiated ALPN identifier, lossily decoded for display.
server_name: Option<String>The SNI the client sent.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PeerInfo
impl RefUnwindSafe for PeerInfo
impl Send for PeerInfo
impl Sync for PeerInfo
impl Unpin for PeerInfo
impl UnsafeUnpin for PeerInfo
impl UnwindSafe for PeerInfo
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