pub struct TlsHandshake {
pub alpn: Option<Vec<u8>>,
pub sni: Option<String>,
pub has_peer_certificates: bool,
pub peer_certificates: Option<Vec<CertificateDer<'static>>>,
}
Expand description
The handshake results from a TLS connection.
Fields§
§alpn: Option<Vec<u8>>
§sni: Option<String>
§has_peer_certificates: bool
For client-to-server connections, will always return true. For server-to-client connections, returns true if the client provided a valid certificate.
peer_certificates: Option<Vec<CertificateDer<'static>>>
The peer certificates from the TLS handshake, if available.
Trait Implementations§
Source§impl Clone for TlsHandshake
impl Clone for TlsHandshake
Source§fn clone(&self) -> TlsHandshake
fn clone(&self) -> TlsHandshake
Returns a duplicate 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 Freeze for TlsHandshake
impl RefUnwindSafe for TlsHandshake
impl Send for TlsHandshake
impl Sync for TlsHandshake
impl Unpin for TlsHandshake
impl UnwindSafe for TlsHandshake
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