pub struct ServerConnectionContext<Peer, Identity> { /* private fields */ }Expand description
Immutable facts known about a client-facing connection.
Implementations§
Source§impl<Peer, Identity> ServerConnectionContext<Peer, Identity>
impl<Peer, Identity> ServerConnectionContext<Peer, Identity>
Sourcepub const fn tls(&self) -> &NegotiatedServerTls
pub const fn tls(&self) -> &NegotiatedServerTls
Returns the negotiated TLS fact.
§Panics
Panics when called before pre-startup negotiation completes.
Sourcepub const fn tls_if_known(&self) -> Option<&NegotiatedServerTls>
pub const fn tls_if_known(&self) -> Option<&NegotiatedServerTls>
Returns TLS evidence only after pre-startup negotiation has completed.
Sourcepub const fn identity(&self) -> &Identity
pub const fn identity(&self) -> &Identity
Returns typed evidence from application authentication.
§Panics
Panics when called before authentication completes.
Sourcepub const fn identity_if_known(&self) -> Option<&Identity>
pub const fn identity_if_known(&self) -> Option<&Identity>
Returns identity evidence only after authentication has completed.
Trait Implementations§
Source§impl<Peer: Clone, Identity: Clone> Clone for ServerConnectionContext<Peer, Identity>
impl<Peer: Clone, Identity: Clone> Clone for ServerConnectionContext<Peer, Identity>
Source§fn clone(&self) -> ServerConnectionContext<Peer, Identity>
fn clone(&self) -> ServerConnectionContext<Peer, Identity>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<Peer: Eq, Identity: Eq> Eq for ServerConnectionContext<Peer, Identity>
Source§impl<Peer: PartialEq, Identity: PartialEq> PartialEq for ServerConnectionContext<Peer, Identity>
impl<Peer: PartialEq, Identity: PartialEq> PartialEq for ServerConnectionContext<Peer, Identity>
impl<Peer: PartialEq, Identity: PartialEq> StructuralPartialEq for ServerConnectionContext<Peer, Identity>
Auto Trait Implementations§
impl<Peer, Identity> !Freeze for ServerConnectionContext<Peer, Identity>
impl<Peer, Identity> RefUnwindSafe for ServerConnectionContext<Peer, Identity>where
Peer: RefUnwindSafe,
Identity: RefUnwindSafe,
impl<Peer, Identity> Send for ServerConnectionContext<Peer, Identity>
impl<Peer, Identity> Sync for ServerConnectionContext<Peer, Identity>
impl<Peer, Identity> Unpin for ServerConnectionContext<Peer, Identity>
impl<Peer, Identity> UnsafeUnpin for ServerConnectionContext<Peer, Identity>where
Peer: UnsafeUnpin,
Identity: UnsafeUnpin,
impl<Peer, Identity> UnwindSafe for ServerConnectionContext<Peer, Identity>where
Peer: UnwindSafe,
Identity: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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