Struct webpki::DNSNameRef [−][src]
pub struct DNSNameRef<'a>(_);
Expand description
A reference to a DNS Name suitable for use in the TLS Server Name Indication (SNI) extension and/or for use as the reference hostname for which to verify a certificate.
A DNSNameRef
is guaranteed to be syntactically valid. The validity rules
are specified in RFC 5280 Section 7.2, except that underscores are also
allowed.
Eq
, PartialEq
, etc. are not implemented because name comparison
frequently should be done case-insensitively and/or with other caveats that
depend on the specific circumstances in which the comparison is done.
Implementations
Constructs a DNSNameRef
from the given input if the input is a
syntactically-valid DNS name.
Constructs a DNSNameRef
from the given input if the input is a
syntactically-valid DNS name.
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl<'a> RefUnwindSafe for DNSNameRef<'a>
impl<'a> Send for DNSNameRef<'a>
impl<'a> Sync for DNSNameRef<'a>
impl<'a> Unpin for DNSNameRef<'a>
impl<'a> UnwindSafe for DNSNameRef<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more