#[non_exhaustive]pub enum DnsLength {
Ignore,
VerifyAllowRootDot,
Verify,
}
Expand description
The UTS 46 VerifyDNSLength flag.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ignore
VerifyDNSLength=false. (Possibly relevant for allowing non-DNS naming systems.)
VerifyAllowRootDot
VerifyDNSLength=true with the exception that the trailing root label dot is allowed.
Verify
VerifyDNSLength=true. (The trailing root label dot is not allowed.)
Trait Implementations§
impl Copy for DnsLength
impl Eq for DnsLength
impl StructuralPartialEq for DnsLength
Auto Trait Implementations§
impl Freeze for DnsLength
impl RefUnwindSafe for DnsLength
impl Send for DnsLength
impl Sync for DnsLength
impl Unpin for DnsLength
impl UnwindSafe for DnsLength
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