Struct tor_socksproto::SocksStatus
source · pub struct SocksStatus(/* private fields */);
Expand description
Possible reply status values from a SOCKS5 handshake.
Note that the documentation for these values is kind of scant, and is limited to what the RFC says. Note also that SOCKS4 only represents success and failure.
Implementations§
source§impl SocksStatus
impl SocksStatus
sourcepub const SUCCEEDED: SocksStatus = _
pub const SUCCEEDED: SocksStatus = _
RFC 1928: “succeeded”
sourcepub const GENERAL_FAILURE: SocksStatus = _
pub const GENERAL_FAILURE: SocksStatus = _
RFC 1928: “general SOCKS server failure”
sourcepub const NOT_ALLOWED: SocksStatus = _
pub const NOT_ALLOWED: SocksStatus = _
RFC 1928: “connection not allowable by ruleset”
(This is the only occurrence of ‘ruleset’ or even ‘rule’ in RFC 1928.)
sourcepub const NETWORK_UNREACHABLE: SocksStatus = _
pub const NETWORK_UNREACHABLE: SocksStatus = _
RFC 1928: “Network unreachable”
sourcepub const HOST_UNREACHABLE: SocksStatus = _
pub const HOST_UNREACHABLE: SocksStatus = _
RFC 1928: “Host unreachable”
sourcepub const CONNECTION_REFUSED: SocksStatus = _
pub const CONNECTION_REFUSED: SocksStatus = _
RFC 1928: “Connection refused”
sourcepub const TTL_EXPIRED: SocksStatus = _
pub const TTL_EXPIRED: SocksStatus = _
RFC 1928: “TTL expired”
(This is the only occurrence of ‘TTL’ in RFC 1928.)
sourcepub const COMMAND_NOT_SUPPORTED: SocksStatus = _
pub const COMMAND_NOT_SUPPORTED: SocksStatus = _
RFC 1929: “Command not supported”
sourcepub const ADDRTYPE_NOT_SUPPORTED: SocksStatus = _
pub const ADDRTYPE_NOT_SUPPORTED: SocksStatus = _
RFC 1929: “Address type not supported”
sourcepub const HS_DESC_NOT_FOUND: SocksStatus = _
pub const HS_DESC_NOT_FOUND: SocksStatus = _
Prop304: “Onion Service Descriptor Can Not be Found”
sourcepub const HS_DESC_INVALID: SocksStatus = _
pub const HS_DESC_INVALID: SocksStatus = _
Prop304: “Onion Service Descriptor Is Invalid”
sourcepub const HS_INTRO_FAILED: SocksStatus = _
pub const HS_INTRO_FAILED: SocksStatus = _
Prop304: “Onion Service Introduction Failed”
sourcepub const HS_REND_FAILED: SocksStatus = _
pub const HS_REND_FAILED: SocksStatus = _
Prop304: “Onion Service Rendezvous Failed”
sourcepub const HS_MISSING_CLIENT_AUTH: SocksStatus = _
pub const HS_MISSING_CLIENT_AUTH: SocksStatus = _
Prop304: “Onion Service Missing Client Authorization”
sourcepub const HS_WRONG_CLIENT_AUTH: SocksStatus = _
pub const HS_WRONG_CLIENT_AUTH: SocksStatus = _
Prop304: “Onion Service Wrong Client Authorization”
sourcepub const HS_BAD_ADDRESS: SocksStatus = _
pub const HS_BAD_ADDRESS: SocksStatus = _
“Onion service address is invalid”
(Documented in tor.1
but not yet specified.)
sourcepub const HS_INTRO_TIMEOUT: SocksStatus = _
pub const HS_INTRO_TIMEOUT: SocksStatus = _
“Onion Service Introduction Timed Out”
(Documented in tor.1
but not yet specified.)
sourcepub fn is_recognized(self) -> bool
pub fn is_recognized(self) -> bool
Return true if this value is one that we recognize.
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for SocksStatus
impl<'arbitrary> Arbitrary<'arbitrary> for SocksStatus
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Self
from the entirety of the given
unstructured data. Read moresource§impl Clone for SocksStatus
impl Clone for SocksStatus
source§fn clone(&self) -> SocksStatus
fn clone(&self) -> SocksStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SocksStatus
impl Debug for SocksStatus
source§impl Display for SocksStatus
impl Display for SocksStatus
source§impl From<SocksStatus> for u8
impl From<SocksStatus> for u8
source§fn from(val: SocksStatus) -> u8
fn from(val: SocksStatus) -> u8
source§impl From<u8> for SocksStatus
impl From<u8> for SocksStatus
source§fn from(num: u8) -> SocksStatus
fn from(num: u8) -> SocksStatus
source§impl PartialEq for SocksStatus
impl PartialEq for SocksStatus
source§fn eq(&self, other: &SocksStatus) -> bool
fn eq(&self, other: &SocksStatus) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for SocksStatus
impl Eq for SocksStatus
impl StructuralPartialEq for SocksStatus
Auto Trait Implementations§
impl Freeze for SocksStatus
impl RefUnwindSafe for SocksStatus
impl Send for SocksStatus
impl Sync for SocksStatus
impl Unpin for SocksStatus
impl UnwindSafe for SocksStatus
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more