pub struct ServerNameRequest(pub Vec<ServerName>);
Tuple Fields§
§0: Vec<ServerName>
Trait Implementations§
source§impl Clone for ServerNameRequest
impl Clone for ServerNameRequest
source§fn clone(&self) -> ServerNameRequest
fn clone(&self) -> ServerNameRequest
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 ServerNameRequest
impl Codec for ServerNameRequest
source§fn read(r: &mut Reader<'_>) -> Option<Self>
fn read(r: &mut Reader<'_>) -> Option<Self>
Decode yourself by fiddling with the
Reader
.
Return Some if it worked, None if not.source§fn get_encoding(&self) -> Vec<u8, Global> ⓘ
fn get_encoding(&self) -> Vec<u8, Global> ⓘ
Convenience function to get the results of
encode()
.source§fn read_bytes(bytes: &[u8]) -> Option<Self>
fn read_bytes(bytes: &[u8]) -> Option<Self>
Read one of these from the front of
bytes
and
return it.source§impl ConvertServerNameList for ServerNameRequest
impl ConvertServerNameList for ServerNameRequest
source§fn has_duplicate_names_for_type(&self) -> bool
fn has_duplicate_names_for_type(&self) -> bool
RFC6066: “The ServerNameList MUST NOT contain more than one name of the same name_type.”
fn get_single_hostname(&self) -> Option<DnsNameRef<'_>>
Auto Trait Implementations§
impl RefUnwindSafe for ServerNameRequest
impl Send for ServerNameRequest
impl Sync for ServerNameRequest
impl Unpin for ServerNameRequest
impl UnwindSafe for ServerNameRequest
Blanket Implementations§
§impl<Tail, T> Prepend<T> for Tail
impl<Tail, T> Prepend<T> for Tail
§type PreprendResult = Tail
type PreprendResult = Tail
The Resulting [
TupleList
], of an [Prepend::prepend()
] call,
including the prepended entry.