pub enum ServerAddrError {
InvalidUrl(ParseError),
InvalidScheme,
MissingHost,
UsernameInvalidUtf8,
PasswordInvalidUtf8,
}Expand description
An error encountered while parsing ServerAddr
Variants§
InvalidUrl(ParseError)
The Url could not be parsed
InvalidScheme
The Url has a bad scheme
MissingHost
The Url is missing the hostname
UsernameInvalidUtf8
The Url contains a non-utf8 username
PasswordInvalidUtf8
The Url contains a non-utf8 password
Trait Implementations§
Source§impl Debug for ServerAddrError
impl Debug for ServerAddrError
Source§impl Display for ServerAddrError
impl Display for ServerAddrError
Source§impl Error for ServerAddrError
impl Error for ServerAddrError
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 ServerAddrError
impl RefUnwindSafe for ServerAddrError
impl Send for ServerAddrError
impl Sync for ServerAddrError
impl Unpin for ServerAddrError
impl UnsafeUnpin for ServerAddrError
impl UnwindSafe for ServerAddrError
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