pub enum SocksServerError {
Show 14 variants
Io {
source: Error,
context: &'static str,
},
FromUtf8 {
source: FromUtf8Error,
context: &'static str,
},
ConnectError(ConnectError),
UdpHeaderError(UdpHeaderError),
AddrError(AddrError),
Bug(&'static str),
AuthMethodUnacceptable(Vec<u8>),
UnsupportedSocksVersion(u8),
UnknownCommand(u8),
UnexpectedUdpControlGarbage(u8),
EmptyUsername,
EmptyPassword,
AuthenticationRejected,
EOF,
}Variants§
Io
FromUtf8
ConnectError(ConnectError)
UdpHeaderError(UdpHeaderError)
AddrError(AddrError)
Bug(&'static str)
AuthMethodUnacceptable(Vec<u8>)
UnsupportedSocksVersion(u8)
UnknownCommand(u8)
UnexpectedUdpControlGarbage(u8)
EmptyUsername
EmptyPassword
AuthenticationRejected
EOF
Implementations§
Source§impl SocksServerError
impl SocksServerError
pub fn to_reply_error(&self) -> ReplyError
Trait Implementations§
Source§impl Debug for SocksServerError
impl Debug for SocksServerError
Source§impl Display for SocksServerError
impl Display for SocksServerError
Source§impl Error for SocksServerError
impl Error for SocksServerError
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<AddrError> for SocksServerError
impl From<AddrError> for SocksServerError
Source§impl From<ConnectError> for SocksServerError
impl From<ConnectError> for SocksServerError
Source§fn from(source: ConnectError) -> Self
fn from(source: ConnectError) -> Self
Converts to this type from the input type.
Source§impl From<SocksServerError> for SocksError
impl From<SocksServerError> for SocksError
Source§fn from(source: SocksServerError) -> Self
fn from(source: SocksServerError) -> Self
Converts to this type from the input type.
Source§impl From<UdpHeaderError> for SocksServerError
impl From<UdpHeaderError> for SocksServerError
Source§fn from(source: UdpHeaderError) -> Self
fn from(source: UdpHeaderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SocksServerError
impl !RefUnwindSafe for SocksServerError
impl Send for SocksServerError
impl Sync for SocksServerError
impl Unpin for SocksServerError
impl !UnwindSafe for SocksServerError
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