Enum socks5_client::ServerError
source · #[repr(u8)]pub enum ServerError {
GeneralFailure,
NotAllowed,
NetworkUnreachable,
HostUnreachable,
ConnectionRefused,
TtlExpired,
CommandNotSupported,
AddressNotSupported,
Unknown,
}Variants§
GeneralFailure
general SOCKS server failure
NotAllowed
connection not allowed by ruleset
NetworkUnreachable
network unreachable
HostUnreachable
host unreachable
ConnectionRefused
connection refused
TtlExpired
TTL expired
CommandNotSupported
command not supported
AddressNotSupported
address kind not supported
Unknown
unknown error type
Trait Implementations§
source§impl Clone for ServerError
impl Clone for ServerError
source§fn clone(&self) -> ServerError
fn clone(&self) -> ServerError
Returns a copy of the value. Read more
1.0.0 · 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 ServerError
impl Debug for ServerError
source§impl Display for ServerError
impl Display for ServerError
source§impl Error for ServerError
impl Error for ServerError
1.30.0 · 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<ServerError> for Error
impl From<ServerError> for Error
source§fn from(v: ServerError) -> Self
fn from(v: ServerError) -> Self
Converts to this type from the input type.
source§impl From<ServerError> for String
impl From<ServerError> for String
source§fn from(err: ServerError) -> Self
fn from(err: ServerError) -> Self
Converts to this type from the input type.
source§impl From<u8> for ServerError
impl From<u8> for ServerError
source§impl PartialEq<ServerError> for ServerError
impl PartialEq<ServerError> for ServerError
source§fn eq(&self, other: &ServerError) -> bool
fn eq(&self, other: &ServerError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for ServerError
impl Eq for ServerError
impl StructuralEq for ServerError
impl StructuralPartialEq for ServerError
Auto Trait Implementations§
impl RefUnwindSafe for ServerError
impl Send for ServerError
impl Sync for ServerError
impl Unpin for ServerError
impl UnwindSafe for ServerError
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