pub enum UrlParseError {
EmptyHost,
IdnaError,
InvalidPort,
InvalidIpv4Address,
InvalidIpv6Address,
InvalidDomainCharacter,
RelativeUrlWithoutBase,
RelativeUrlWithCannotBeABaseBase,
SetHostOnCannotBeABaseUrl,
Overflow,
Unknown,
SchemeNotHttps,
}Expand description
Error when parsing URL.
Variants§
EmptyHost
Missing host part in the URL.
IdnaError
Invalid international domain name.
InvalidPort
Invalid port number.
InvalidIpv4Address
Invalid IPv4 address
InvalidIpv6Address
Invalid IPv6 address
InvalidDomainCharacter
Invalid domain character.
RelativeUrlWithoutBase
Relative URL without a base.
RelativeUrlWithCannotBeABaseBase
Relative URL with a cannot-be-a-base base
SetHostOnCannotBeABaseUrl
A cannot-be-a-base URL doesn’t have a host to set
Overflow
URLs more than 4 GB are not supported.
Unknown
Unknown error during URL parsing.
SchemeNotHttps
WebTransport only support HTTPS method.
Trait Implementations§
Source§impl Debug for UrlParseError
impl Debug for UrlParseError
Source§impl Display for UrlParseError
impl Display for UrlParseError
Source§impl Error for UrlParseError
impl Error for UrlParseError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for UrlParseError
impl RefUnwindSafe for UrlParseError
impl Send for UrlParseError
impl Sync for UrlParseError
impl Unpin for UrlParseError
impl UnwindSafe for UrlParseError
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