pub enum DisplaySafeUrlError {
Url(ParseError),
AmbiguousAuthority(String),
}Variants§
Url(ParseError)
Failed to parse a URL.
AmbiguousAuthority(String)
We parsed a URL, but couldn’t disambiguate its authority component.
Trait Implementations§
Source§impl Clone for DisplaySafeUrlError
impl Clone for DisplaySafeUrlError
Source§fn clone(&self) -> DisplaySafeUrlError
fn clone(&self) -> DisplaySafeUrlError
Returns a duplicate 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 DisplaySafeUrlError
impl Debug for DisplaySafeUrlError
Source§impl Display for DisplaySafeUrlError
impl Display for DisplaySafeUrlError
Source§impl Error for DisplaySafeUrlError
impl Error for DisplaySafeUrlError
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()
Source§impl From<ParseError> for DisplaySafeUrlError
impl From<ParseError> for DisplaySafeUrlError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DisplaySafeUrlError
impl PartialEq for DisplaySafeUrlError
impl Eq for DisplaySafeUrlError
impl StructuralPartialEq for DisplaySafeUrlError
Auto Trait Implementations§
impl Freeze for DisplaySafeUrlError
impl RefUnwindSafe for DisplaySafeUrlError
impl Send for DisplaySafeUrlError
impl Sync for DisplaySafeUrlError
impl Unpin for DisplaySafeUrlError
impl UnwindSafe for DisplaySafeUrlError
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