pub struct DnsName(String);
Expand description
Requires the alloc
feature.
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 DnsName
is guaranteed to be syntactically valid. The validity rules are
specified in RFC 5280 Section 7.2, except that underscores are also
allowed. DnsName
s do not include wildcard labels.
DnsName
stores a copy of the input it was constructed from in a String
and so it is only available when the alloc
default feature is enabled.
Requires the alloc
feature.
Tuple Fields§
§0: String
Implementations§
Trait Implementations§
source§impl PartialEq for DnsName
impl PartialEq for DnsName
impl Eq for DnsName
impl StructuralPartialEq for DnsName
Auto Trait Implementations§
impl Freeze for DnsName
impl RefUnwindSafe for DnsName
impl Send for DnsName
impl Sync for DnsName
impl Unpin for DnsName
impl UnwindSafe for DnsName
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