pub enum HttpConnectError {
Refused(u16),
MalformedStatus,
HeadTooLarge,
}Available on crate feature
http only.Expand description
Failure causes during the HTTP CONNECT handshake.
Variants§
Refused(u16)
The proxy refused the tunnel with a non-2xx status.
MalformedStatus
The proxy status line could not be parsed.
HeadTooLarge
The response head exceeded the internal cap without terminating.
Trait Implementations§
Source§impl Clone for HttpConnectError
impl Clone for HttpConnectError
Source§fn clone(&self) -> HttpConnectError
fn clone(&self) -> HttpConnectError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HttpConnectError
impl Debug for HttpConnectError
Source§impl Display for HttpConnectError
impl Display for HttpConnectError
impl Eq for HttpConnectError
Source§impl Error for HttpConnectError
impl Error for HttpConnectError
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()
Source§impl From<HttpConnectError> for ProxyClientError
Available on crate feature client and (crate features http or socks5) only.
impl From<HttpConnectError> for ProxyClientError
Available on crate feature
client and (crate features http or socks5) only.Source§fn from(source: HttpConnectError) -> Self
fn from(source: HttpConnectError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for HttpConnectError
impl PartialEq for HttpConnectError
impl StructuralPartialEq for HttpConnectError
Auto Trait Implementations§
impl Freeze for HttpConnectError
impl RefUnwindSafe for HttpConnectError
impl Send for HttpConnectError
impl Sync for HttpConnectError
impl Unpin for HttpConnectError
impl UnsafeUnpin for HttpConnectError
impl UnwindSafe for HttpConnectError
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