Trait tonic::transport::server::Connected [−][src]
pub trait Connected { fn remote_addr(&self) -> Option<SocketAddr> { ... } fn peer_certs(&self) -> Option<Vec<Certificate>> { ... } }
This is supported on crate feature
transport
only.Trait that connected IO resources implement.
The goal for this trait is to allow users to implement custom IO types that can still provide the same connection metadata.
Provided methods
fn remote_addr(&self) -> Option<SocketAddr>
[src]
Return the remote address this IO resource is connected too.
fn peer_certs(&self) -> Option<Vec<Certificate>>
[src]
Return the set of connected peer TLS certificates.
Implementations on Foreign Types
impl Connected for AddrStream
[src]
impl Connected for AddrStream
[src]fn remote_addr(&self) -> Option<SocketAddr>
[src]
impl Connected for TcpStream
[src]
impl Connected for TcpStream
[src]fn remote_addr(&self) -> Option<SocketAddr>
[src]
impl<T: Connected> Connected for TlsStream<T>
[src]
impl<T: Connected> Connected for TlsStream<T>
[src]