Struct tonic::transport::server::TlsConnectInfo
source · pub struct TlsConnectInfo<T> { /* private fields */ }
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 peer_certs(&self) -> Option<Arc<Vec<CertificateDer<'static>>>>
pub fn peer_certs(&self) -> Option<Arc<Vec<CertificateDer<'static>>>>
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> Freeze for TlsConnectInfo<T>where
T: Freeze,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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