Enum ttfb::InvalidUrlError
source · pub enum InvalidUrlError {
MissingInput,
WrongFormat(String),
WrongScheme(String),
Other,
}
Expand description
Errors during URL parsing.
Variants§
MissingInput
No input was provided. Provide a URL, such as https://example.com or https://1.2.3.4:443.
WrongFormat(String)
The URL is illegal.
WrongScheme(String)
Wrong scheme. Only supports http and https.
Other
Other unknown error.
Trait Implementations§
source§impl Clone for InvalidUrlError
impl Clone for InvalidUrlError
source§fn clone(&self) -> InvalidUrlError
fn clone(&self) -> InvalidUrlError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InvalidUrlError
impl Debug for InvalidUrlError
source§impl Display for InvalidUrlError
impl Display for InvalidUrlError
source§impl Error for InvalidUrlError
impl Error for InvalidUrlError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl Hash for InvalidUrlError
impl Hash for InvalidUrlError
source§impl Ord for InvalidUrlError
impl Ord for InvalidUrlError
source§fn cmp(&self, other: &InvalidUrlError) -> Ordering
fn cmp(&self, other: &InvalidUrlError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for InvalidUrlError
impl PartialEq for InvalidUrlError
source§fn eq(&self, other: &InvalidUrlError) -> bool
fn eq(&self, other: &InvalidUrlError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for InvalidUrlError
impl PartialOrd for InvalidUrlError
source§fn partial_cmp(&self, other: &InvalidUrlError) -> Option<Ordering>
fn partial_cmp(&self, other: &InvalidUrlError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for InvalidUrlError
impl StructuralPartialEq for InvalidUrlError
Auto Trait Implementations§
impl Freeze for InvalidUrlError
impl RefUnwindSafe for InvalidUrlError
impl Send for InvalidUrlError
impl Sync for InvalidUrlError
impl Unpin for InvalidUrlError
impl UnwindSafe for InvalidUrlError
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