pub enum ProxyClientError {
Socks5(Socks5ConnectError),
Http(HttpConnectError),
Io(Error),
}Available on crate feature
client and (crate features http or socks5) only.Expand description
Errors returned by the client pump.
Variants§
Socks5(Socks5ConnectError)
Available on crate feature
socks5 only.The SOCKS5 handshake coroutine failed.
Http(HttpConnectError)
Available on crate feature
http only.The HTTP CONNECT handshake coroutine failed.
Io(Error)
The underlying stream failed to read or write.
Trait Implementations§
Source§impl Debug for ProxyClientError
impl Debug for ProxyClientError
Source§impl Display for ProxyClientError
impl Display for ProxyClientError
Source§impl Error for ProxyClientError
impl Error for ProxyClientError
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<Error> for ProxyClientError
impl From<Error> for ProxyClientError
Source§impl From<HttpConnectError> for ProxyClientError
impl From<HttpConnectError> for ProxyClientError
Source§fn from(source: HttpConnectError) -> Self
fn from(source: HttpConnectError) -> Self
Converts to this type from the input type.
Source§impl From<Socks5ConnectError> for ProxyClientError
impl From<Socks5ConnectError> for ProxyClientError
Source§fn from(source: Socks5ConnectError) -> Self
fn from(source: Socks5ConnectError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ProxyClientError
impl !UnwindSafe for ProxyClientError
impl Freeze for ProxyClientError
impl Send for ProxyClientError
impl Sync for ProxyClientError
impl Unpin for ProxyClientError
impl UnsafeUnpin for ProxyClientError
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