pub enum UriParseError {
InvalidFormat {
message: String,
span: Option<usize>,
},
UnsupportedProtocol(String),
MissingHost,
InvalidPort(String),
EmptyHost,
DuplicateHopSeparator,
}Expand description
Errors that can occur during URI parsing.
Variants§
InvalidFormat
UnsupportedProtocol(String)
MissingHost
InvalidPort(String)
EmptyHost
DuplicateHopSeparator
Trait Implementations§
Source§impl Debug for UriParseError
impl Debug for UriParseError
Source§impl Display for UriParseError
impl Display for UriParseError
Source§impl Error for UriParseError
impl Error for UriParseError
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 UriParseError
impl RefUnwindSafe for UriParseError
impl Send for UriParseError
impl Sync for UriParseError
impl Unpin for UriParseError
impl UnsafeUnpin for UriParseError
impl UnwindSafe for UriParseError
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