pub struct Servername(pub String);Expand description
The DNS server name carried in the TLS SNI extension.
Server-side filters expose the name received from the client, when present. OpenSSL may also expose its configured client-side name. This is not the transport address or evidence that the peer is authorized to use the name.
Tuple Fields§
§0: StringOwned server name without a port.
Trait Implementations§
Source§impl Clone for Servername
impl Clone for Servername
Source§fn clone(&self) -> Servername
fn clone(&self) -> Servername
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 Servername
impl Debug for Servername
impl Eq for Servername
Source§impl Hash for Servername
impl Hash for Servername
Source§impl PartialEq for Servername
impl PartialEq for Servername
impl StructuralPartialEq for Servername
Auto Trait Implementations§
impl Freeze for Servername
impl RefUnwindSafe for Servername
impl Send for Servername
impl Sync for Servername
impl Unpin for Servername
impl UnsafeUnpin for Servername
impl UnwindSafe for Servername
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.