pub struct ConnectionAttributes(/* private fields */);
Expand description
The following attributes are available once the downstream connection is established
Implementations§
Source§impl ConnectionAttributes
impl ConnectionAttributes
Sourcepub fn source_address(&self) -> Option<SocketAddr>
pub fn source_address(&self) -> Option<SocketAddr>
Downstream connection remote address & port
Sourcepub fn source_port(&self) -> Option<u16>
pub fn source_port(&self) -> Option<u16>
Downstream connection remote port
Sourcepub fn destination_address(&self) -> Option<SocketAddr>
pub fn destination_address(&self) -> Option<SocketAddr>
Downstream connection local address & port
Sourcepub fn destination_port(&self) -> Option<u16>
pub fn destination_port(&self) -> Option<u16>
Downstream connection local port
Sourcepub fn mtls(&self) -> Option<bool>
pub fn mtls(&self) -> Option<bool>
Indicates whether TLS is applied to the downstream connection and the peer certificate is presented
Sourcepub fn requested_server_name(&self) -> Option<String>
pub fn requested_server_name(&self) -> Option<String>
Requested server name in the downstream TLS connection
Sourcepub fn tls_version(&self) -> Option<String>
pub fn tls_version(&self) -> Option<String>
Requested server name in the downstream TLS connection
Sourcepub fn subject_local_certificate(&self) -> Option<String>
pub fn subject_local_certificate(&self) -> Option<String>
Requested server name in the downstream TLS connection
Sourcepub fn subject_peer_certificate(&self) -> Option<String>
pub fn subject_peer_certificate(&self) -> Option<String>
Requested server name in the downstream TLS connection
Sourcepub fn dns_san_local_certificate(&self) -> Option<String>
pub fn dns_san_local_certificate(&self) -> Option<String>
Requested server name in the downstream TLS connection
Sourcepub fn dns_san_peer_certificate(&self) -> Option<String>
pub fn dns_san_peer_certificate(&self) -> Option<String>
Requested server name in the downstream TLS connection
Sourcepub fn uri_san_local_certificate(&self) -> Option<String>
pub fn uri_san_local_certificate(&self) -> Option<String>
Requested server name in the downstream TLS connection
Sourcepub fn uri_san_peer_certificate(&self) -> Option<String>
pub fn uri_san_peer_certificate(&self) -> Option<String>
Requested server name in the downstream TLS connection
Sourcepub fn sha256_peer_certificate_digest(&self) -> Option<String>
pub fn sha256_peer_certificate_digest(&self) -> Option<String>
Requested server name in the downstream TLS connection
Sourcepub fn termination_details(&self) -> Option<String>
pub fn termination_details(&self) -> Option<String>
The following additional attributes are available upon the downstream connection termination: Internal termination details of the connection (subject to change)