pub enum ParseErr {
InvalidURL(ParseError),
InvalidScheme(String),
MissingHost,
MissingPort,
AuthUnsupported,
}Variants§
InvalidURL(ParseError)
Couldn’t parse a URL
InvalidScheme(String)
Unsupported scheme, these get normalized to lowercase.
MissingHost
MissingPort
The proxy protocol is missing a default port in [DEFAULT_PORTS] and you didn’t provide one
AuthUnsupported
If you’re using a proxy protocol (i.e. SOCKS4) that doesn’t support authentication, and you provided authentication credentials.
Trait Implementations§
Source§impl From<ParseError> for ParseErr
impl From<ParseError> for ParseErr
Source§fn from(err: ParseError) -> ParseErr
fn from(err: ParseError) -> ParseErr
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParseErr
impl RefUnwindSafe for ParseErr
impl Send for ParseErr
impl Sync for ParseErr
impl Unpin for ParseErr
impl UnwindSafe for ParseErr
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