pub enum ServerNameType {
HostName,
Unknown(u8),
}
Expand description
The ServerNameType
TLS protocol enum. Values in this enum are taken
from the various RFCs covering TLS, and are listed by IANA.
The Unknown
item is used when processing unrecognised ordinals.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ServerNameType
impl Clone for ServerNameType
Source§fn clone(&self) -> ServerNameType
fn clone(&self) -> ServerNameType
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 moreSource§impl Codec for ServerNameType
impl Codec for ServerNameType
Source§impl Debug for ServerNameType
impl Debug for ServerNameType
Source§impl PartialEq for ServerNameType
impl PartialEq for ServerNameType
impl Copy for ServerNameType
impl Eq for ServerNameType
impl StructuralPartialEq for ServerNameType
Auto Trait Implementations§
impl Freeze for ServerNameType
impl RefUnwindSafe for ServerNameType
impl Send for ServerNameType
impl Sync for ServerNameType
impl Unpin for ServerNameType
impl UnwindSafe for ServerNameType
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