pub enum ServerNamePayload {
HostName((PayloadU16, DnsName)),
Unknown(Payload),
}
Variants§
HostName((PayloadU16, DnsName))
Unknown(Payload)
Implementations§
source§impl ServerNamePayload
impl ServerNamePayload
pub fn new_hostname(hostname: DnsName) -> Self
Trait Implementations§
source§impl Clone for ServerNamePayload
impl Clone for ServerNamePayload
source§fn clone(&self) -> ServerNamePayload
fn clone(&self) -> ServerNamePayload
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 more