pub struct ServerIdentity { /* private fields */ }Expand description
A reloadable server identity resolved for each TLS connection.
Implementations§
Source§impl ServerIdentity
impl ServerIdentity
Sourcepub const fn new(
config: Arc<ServerConfig>,
leaf_certificate: CertificateDer<'static>,
) -> Self
pub const fn new( config: Arc<ServerConfig>, leaf_certificate: CertificateDer<'static>, ) -> Self
Creates an identity from a rustls configuration and its leaf certificate.
leaf_certificate must be the certificate selected by config; it is
retained separately because rustls does not expose configured resolver
certificates for PostgreSQL channel-binding derivation.
Trait Implementations§
Source§impl Clone for ServerIdentity
impl Clone for ServerIdentity
Source§fn clone(&self) -> ServerIdentity
fn clone(&self) -> ServerIdentity
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for ServerIdentity
impl !UnwindSafe for ServerIdentity
impl Freeze for ServerIdentity
impl Send for ServerIdentity
impl Sync for ServerIdentity
impl Unpin for ServerIdentity
impl UnsafeUnpin for ServerIdentity
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