UpstreamAttributes

Struct UpstreamAttributes 

Source
pub struct UpstreamAttributes(/* private fields */);
Expand description

The following attributes are available once the upstream connection is established

Implementations§

Source§

impl UpstreamAttributes

Source

pub fn address(&self) -> Option<SocketAddr>

Upstream connection remote address & port

Source

pub fn port(&self) -> Option<u16>

Upstream connection remote port

Source

pub fn tls_version(&self) -> Option<String>

TLS version of the upstream TLS connection

Source

pub fn subject_local_certificate(&self) -> Option<String>

The subject field of the local certificate in the upstream TLS connection

Source

pub fn subject_peer_certificate(&self) -> Option<String>

The subject field of the local certificate in the upstream TLS connection

Source

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

Source

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

Source

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

Source

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

Source

pub fn sha256_peer_certificate_digest(&self) -> Option<String>

Requested server name in the downstream TLS connection

Source

pub fn local_address(&self) -> Option<String>

The local address of the upstream connection

Source

pub fn transport_failure_reason(&self) -> Option<String>

The upstream transport failure reason e.g. certificate validation failed

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.