Enum fast_socks5::SocksError
source · pub enum SocksError {
Io(Error),
Redaction(String),
InvalidHeader {
expected: String,
found: String,
},
AuthMethodUnacceptable(Vec<u8>),
UnsupportedSocksVersion(u8),
ExceededMaxDomainLen(usize),
AuthenticationFailed(String),
AuthenticationRejected(String),
ReplyError(ReplyError),
ArgumentInputError(&'static str),
Other(Error),
}
Variants§
Io(Error)
Redaction(String)
InvalidHeader
AuthMethodUnacceptable(Vec<u8>)
UnsupportedSocksVersion(u8)
ExceededMaxDomainLen(usize)
AuthenticationFailed(String)
AuthenticationRejected(String)
ReplyError(ReplyError)
ArgumentInputError(&'static str)
Other(Error)
Trait Implementations§
source§impl Debug for SocksError
impl Debug for SocksError
source§impl Display for SocksError
impl Display for SocksError
source§impl Error for SocksError
impl Error for SocksError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 SocksError
impl From<Error> for SocksError
source§impl From<Error> for SocksError
impl From<Error> for SocksError
source§impl From<ReplyError> for SocksError
impl From<ReplyError> for SocksError
source§fn from(source: ReplyError) -> Self
fn from(source: ReplyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SocksError
impl !RefUnwindSafe for SocksError
impl Send for SocksError
impl Sync for SocksError
impl Unpin for SocksError
impl !UnwindSafe for SocksError
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