Struct envoy_sdk::host::stream_info::UpstreamInfo[][src]

pub struct UpstreamInfo<'a> { /* fields omitted */ }

Provides access to upstream properties.

Implementations

impl<'a> UpstreamInfo<'a>[src]

pub fn address(&self) -> Result<Option<String>>[src]

Returns upstream connection remote address.

pub fn port(&self) -> Result<Option<u32>>[src]

Returns upstream connection remote port.

pub fn local_address(&self) -> Result<Option<String>>[src]

Returns the local address of the upstream connection.

pub fn transport_failure_reason(&self) -> Result<Option<String>>[src]

Returns the upstream transport failure reason e.g. certificate validation failed.

pub fn tls(&'a self) -> UpstreamConnectionTlsInfo<'a>[src]

Provides access to TLS properties of the upstream connection.

Auto Trait Implementations

impl<'a> !RefUnwindSafe for UpstreamInfo<'a>

impl<'a> !Send for UpstreamInfo<'a>

impl<'a> !Sync for UpstreamInfo<'a>

impl<'a> Unpin for UpstreamInfo<'a>

impl<'a> !UnwindSafe for UpstreamInfo<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.