#[non_exhaustive]pub enum UriError {
Scheme,
EmptyHost,
Host,
Port,
Ipv6Reference,
IllegalCharacter,
PercentEscape,
User,
TelephoneSubscriber,
RetainedSpan,
EmptyParameterName,
DuplicateParameterName,
}Expand description
A URI that could not be parsed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Scheme
No scheme, or a scheme that is not a token followed by :.
EmptyHost
A sip: or sips: URI with no host.
Host
The host contains a character no host may contain.
Port
The port is not one to five digits, or exceeds 65535.
Ipv6Reference
An IPv6 reference missing its closing bracket.
IllegalCharacter
A character illegal anywhere in a URI: whitespace, a control character, or one of
<, >, ".
PercentEscape
A % not followed by two hex digits.
User
A SIP user part is empty or contains a byte outside RFC 3261’s user production.
TelephoneSubscriber
A parsed or replacement tel: subscriber is empty or falls outside RFC 3966’s global and
local telephone-subscriber productions.
RetainedSpan
A parsed message’s retained URI span no longer points inside its retained wire bytes.
EmptyParameterName
A parameter or header with an empty name.
DuplicateParameterName
A uri-parameter name that appears more than once. RFC 3261 §19.1.1: “any given
parameter-name MUST NOT appear more than once.” URI headers may repeat; only the
; list is policed.
Trait Implementations§
Source§impl Error for UriError
impl Error for UriError
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()