Enum socks5_client::ServerError
source · #[repr(u8)]pub enum ServerError {
GeneralFailure = 1,
NotAllowed = 2,
NetworkUnreachable = 3,
HostUnreachable = 4,
ConnectionRefused = 5,
TtlExpired = 6,
CommandNotSupported = 7,
AddressNotSupported = 8,
Unknown = 255,
}
Variants§
GeneralFailure = 1
general SOCKS server failure
NotAllowed = 2
connection not allowed by ruleset
NetworkUnreachable = 3
network unreachable
HostUnreachable = 4
host unreachable
ConnectionRefused = 5
connection refused
TtlExpired = 6
TTL expired
CommandNotSupported = 7
command not supported
AddressNotSupported = 8
address kind not supported
Unknown = 255
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 for ServerError
impl PartialEq 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 StructuralPartialEq for ServerError
Auto Trait Implementations§
impl Freeze for ServerError
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