Struct rustls_tokio_stream::TlsHandshake
source · pub struct TlsHandshake {
pub alpn: Option<Vec<u8>>,
pub sni: Option<String>,
pub has_peer_certificates: bool,
}
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.
Trait Implementations§
source§impl Clone for TlsHandshake
impl Clone for TlsHandshake
source§fn clone(&self) -> TlsHandshake
fn clone(&self) -> TlsHandshake
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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)