pub enum BaseUrlError {
Invalid(InvalidUri),
NotAbsolute,
UnsupportedScheme,
HasQuery,
HasFragment,
}Expand description
The reason a string was rejected as a base URL.
Variants§
Invalid(InvalidUri)
The string is not a valid URL.
NotAbsolute
The URL has no scheme or host, like example.com/app or /app.
UnsupportedScheme
The scheme is neither http nor https.
HasQuery
The URL carries a query string, which a base cannot have.
HasFragment
The URL carries a fragment, which a base cannot have.
Trait Implementations§
Source§impl Debug for BaseUrlError
impl Debug for BaseUrlError
Source§impl Display for BaseUrlError
impl Display for BaseUrlError
Source§impl Error for BaseUrlError
impl Error for BaseUrlError
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 BaseUrlError
impl RefUnwindSafe for BaseUrlError
impl Send for BaseUrlError
impl Sync for BaseUrlError
impl Unpin for BaseUrlError
impl UnsafeUnpin for BaseUrlError
impl UnwindSafe for BaseUrlError
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