#[non_exhaustive]#[repr(u8)]pub enum Socks5ErrorKind {
GeneralServerFailure = 1,
ConnectionNotAllowed = 2,
NetworkUnreachable = 3,
HostUnreachable = 4,
ConnectionRefused = 5,
TTLExpired = 6,
CommandNotSupported = 7,
AddressTypeNotSupported = 8,
}Expand description
Socks5 related errors that can be sent to client as Reply
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
GeneralServerFailure = 1
ConnectionNotAllowed = 2
NetworkUnreachable = 3
HostUnreachable = 4
ConnectionRefused = 5
TTLExpired = 6
CommandNotSupported = 7
AddressTypeNotSupported = 8
Trait Implementations§
Source§impl Clone for Socks5ErrorKind
impl Clone for Socks5ErrorKind
Source§fn clone(&self) -> Socks5ErrorKind
fn clone(&self) -> Socks5ErrorKind
Returns a duplicate 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 Socks5ErrorKind
impl Debug for Socks5ErrorKind
Source§impl From<Socks5ErrorKind> for Error
impl From<Socks5ErrorKind> for Error
Source§fn from(value: Socks5ErrorKind) -> Self
fn from(value: Socks5ErrorKind) -> Self
Converts to this type from the input type.
Source§impl Into<u8> for Socks5ErrorKind
impl Into<u8> for Socks5ErrorKind
Source§impl ToString for Socks5ErrorKind
impl ToString for Socks5ErrorKind
impl Copy for Socks5ErrorKind
Auto Trait Implementations§
impl Freeze for Socks5ErrorKind
impl RefUnwindSafe for Socks5ErrorKind
impl Send for Socks5ErrorKind
impl Sync for Socks5ErrorKind
impl Unpin for Socks5ErrorKind
impl UnwindSafe for Socks5ErrorKind
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