#[non_exhaustive]pub enum ExtensionKeyError {
Show 15 variants
Empty,
TooLong {
max: usize,
actual: usize,
},
InvalidUri,
UnsupportedUriScheme,
MissingAuthority,
UserInfoNotAllowed,
QueryNotAllowed,
FragmentNotAllowed,
InvalidUrn,
NonCanonicalUri,
TooFewReverseDnsLabels,
InvalidReverseDnsLabelLength {
label_index: usize,
actual: usize,
},
InvalidReverseDnsLabelStart {
label_index: usize,
},
InvalidReverseDnsLabelEnd {
label_index: usize,
},
InvalidReverseDnsByte {
index: usize,
},
}Expand description
Invalid extension namespace identity.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Empty
The key contained no bytes.
TooLong
The key exceeded ExtensionKey::MAX_LEN.
InvalidUri
Text containing a URI separator was not a valid URI.
UnsupportedUriScheme
The URI scheme was not one of the supported identifier-only schemes.
MissingAuthority
An HTTPS key did not contain a non-empty authority host.
UserInfoNotAllowed
URI user information was present.
QueryNotAllowed
A query component was present, including an empty query.
FragmentNotAllowed
A fragment component was present, including an empty fragment.
InvalidUrn
A URN did not contain a lowercase valid namespace and non-empty value.
NonCanonicalUri
The URI input did not already use its normalized spelling.
TooFewReverseDnsLabels
A reverse-DNS key contained fewer than three labels.
InvalidReverseDnsLabelLength
A reverse-DNS label was empty or exceeded 63 bytes.
InvalidReverseDnsLabelStart
A label did not begin with lowercase ASCII.
InvalidReverseDnsLabelEnd
A label did not end in a lowercase letter or digit.
InvalidReverseDnsByte
A reverse-DNS byte was outside the lowercase DNS-label grammar.
Trait Implementations§
Source§impl Clone for ExtensionKeyError
impl Clone for ExtensionKeyError
Source§impl Debug for ExtensionKeyError
impl Debug for ExtensionKeyError
Source§impl Display for ExtensionKeyError
impl Display for ExtensionKeyError
impl Eq for ExtensionKeyError
Source§impl Error for ExtensionKeyError
impl Error for ExtensionKeyError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()