pub struct ClientHelloInfo {
pub server_name: Option<String>,
pub alpn_protocols: Vec<Vec<u8>>,
}Expand description
What we learn from a ClientHello before the handshake proper.
Fields§
§server_name: Option<String>The SNI host name (RFC 6066), if the client sent one.
alpn_protocols: Vec<Vec<u8>>The ALPN protocol IDs the client offered (RFC 7301), in order.
Implementations§
Source§impl ClientHelloInfo
impl ClientHelloInfo
Sourcepub fn wants_acme_tls(&self) -> bool
pub fn wants_acme_tls(&self) -> bool
Whether the client offered the acme-tls/1 protocol (TLS-ALPN-01).
Trait Implementations§
Source§impl Clone for ClientHelloInfo
impl Clone for ClientHelloInfo
Source§fn clone(&self) -> ClientHelloInfo
fn clone(&self) -> ClientHelloInfo
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 moreSource§impl Debug for ClientHelloInfo
impl Debug for ClientHelloInfo
Source§impl Default for ClientHelloInfo
impl Default for ClientHelloInfo
Source§fn default() -> ClientHelloInfo
fn default() -> ClientHelloInfo
Returns the “default value” for a type. Read more
impl Eq for ClientHelloInfo
Source§impl PartialEq for ClientHelloInfo
impl PartialEq for ClientHelloInfo
Source§fn eq(&self, other: &ClientHelloInfo) -> bool
fn eq(&self, other: &ClientHelloInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClientHelloInfo
Auto Trait Implementations§
impl Freeze for ClientHelloInfo
impl RefUnwindSafe for ClientHelloInfo
impl Send for ClientHelloInfo
impl Sync for ClientHelloInfo
impl Unpin for ClientHelloInfo
impl UnsafeUnpin for ClientHelloInfo
impl UnwindSafe for ClientHelloInfo
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.