Skip to main content

peer_from_connection

Function peer_from_connection 

Source
pub fn peer_from_connection(connection: &Connection) -> Option<Peer>
Expand description

r[impl jetstream.session.identity] The peer’s TLS certificate chain, parsed, or None when the connection carries no client certificate.

For the default rustls session the dynamic identity downcasts to a Vec<CertificateDer>.