Struct tonic::transport::server::TlsConnectInfo
source · pub struct TlsConnectInfo<T> { /* private fields */ }
Available on crate feature
transport
only.Expand description
Connection info for TLS streams.
This type will be accessible through request extensions if you’re using a TLS connector.
See Connected
for more details.
Implementations§
source§impl<T> TlsConnectInfo<T>
impl<T> TlsConnectInfo<T>
sourcepub fn get_ref(&self) -> &T
Available on crate feature tls
only.
pub fn get_ref(&self) -> &T
tls
only.Get a reference to the underlying connection info.
sourcepub fn get_mut(&mut self) -> &mut T
Available on crate feature tls
only.
pub fn get_mut(&mut self) -> &mut T
tls
only.Get a mutable reference to the underlying connection info.
sourcepub fn peer_certs(&self) -> Option<Arc<Vec<Certificate>>>
Available on crate feature tls
only.
pub fn peer_certs(&self) -> Option<Arc<Vec<Certificate>>>
tls
only.Return the set of connected peer TLS certificates.
Trait Implementations§
source§impl<T: Clone> Clone for TlsConnectInfo<T>
impl<T: Clone> Clone for TlsConnectInfo<T>
source§fn clone(&self) -> TlsConnectInfo<T>
fn clone(&self) -> TlsConnectInfo<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<T> RefUnwindSafe for TlsConnectInfo<T>where
T: RefUnwindSafe,
impl<T> Send for TlsConnectInfo<T>where
T: Send,
impl<T> Sync for TlsConnectInfo<T>where
T: Sync,
impl<T> Unpin for TlsConnectInfo<T>where
T: Unpin,
impl<T> UnwindSafe for TlsConnectInfo<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request