pub struct UpstreamAttributes(/* private fields */);Expand description
The following attributes are available once the upstream connection is established
Implementations§
Source§impl UpstreamAttributes
impl UpstreamAttributes
Sourcepub fn address(&self) -> Option<SocketAddr>
pub fn address(&self) -> Option<SocketAddr>
Upstream connection remote address & port
Sourcepub fn tls_version(&self) -> Option<String>
pub fn tls_version(&self) -> Option<String>
TLS version of the upstream TLS connection
Sourcepub fn subject_local_certificate(&self) -> Option<String>
pub fn subject_local_certificate(&self) -> Option<String>
The subject field of the local certificate in the upstream TLS connection
Sourcepub fn subject_peer_certificate(&self) -> Option<String>
pub fn subject_peer_certificate(&self) -> Option<String>
The subject field of the local certificate in the upstream TLS connection
Sourcepub fn dns_san_local_certificate(&self) -> Option<String>
pub fn dns_san_local_certificate(&self) -> Option<String>
The first DNS entry in the SAN field of the local certificate in the upstream TLS connection
Sourcepub fn dns_san_peer_certificate(&self) -> Option<String>
pub fn dns_san_peer_certificate(&self) -> Option<String>
The first DNS entry in the SAN field of the peer certificate in the upstream TLS connection
Sourcepub fn uri_san_local_certificate(&self) -> Option<String>
pub fn uri_san_local_certificate(&self) -> Option<String>
The first URI entry in the SAN field of the local certificate in the upstream TLS connection
Sourcepub fn uri_san_peer_certificate(&self) -> Option<String>
pub fn uri_san_peer_certificate(&self) -> Option<String>
The first URI entry in the SAN field of the peer certificate in the upstream 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 local_address(&self) -> Option<String>
pub fn local_address(&self) -> Option<String>
The local address of the upstream connection
Sourcepub fn transport_failure_reason(&self) -> Option<String>
pub fn transport_failure_reason(&self) -> Option<String>
The upstream transport failure reason e.g. certificate validation failed