Enum SocksMethod
pub enum SocksMethod {
NoAuthenticationRequired,
GSSAPI,
UsernamePassword,
ChallengeHandshakeAuthenticationProtocol,
ChallengeResponseAuthenticationMethod,
SecureSocksLayer,
NDSAuthentication,
MultiAuthenticationFramework,
JSONParameterBlock,
NoAcceptableMethods,
Unknown(u8),
}
Expand description
Socks5 Method as defined by IANA SOCKS Methods
Variants§
NoAuthenticationRequired
No authentication required.
Reference: RFC 1928
GSSAPI
Generic Security Services Application Program Interface
Reference: RFC 1928
UsernamePassword
Username/Password Authentication for SOCKS V5
Reference: RFC 1928
ChallengeHandshakeAuthenticationProtocol
Challenge-Handshake Authentication Protocol
Reference: Marc VanHeyingen mailto:marcvh@aventail.com.
ChallengeResponseAuthenticationMethod
Challenge-Response Authentication Method
Reference: Marc VanHeyingen mailto:marcvh@aventail.com.
SecureSocksLayer
Secure Sockets Layer
Reference: Marc VanHeyingen mailto:marcvh@aventail.com.
NDSAuthentication
NDS Authentication
Reference: Vijay Talati mailto:VTalati@novell.com.
MultiAuthenticationFramework
Multi-Authentication Framework
Reference: Vijay Talati mailto:VTalati@novell.com.
JSONParameterBlock
JSON Parameter Block
Reference: Brandon Wiley mailto:brandon@operatorfoundation.org.
NoAcceptableMethods
No acceptable methods.
If the selected METHOD (by the server) is X’FF’, none of the methods listed by the client are acceptable, and the client MUST close the connection.
Reference: RFC 1928
Unknown(u8)
Trait Implementations§
§impl Clone for SocksMethod
impl Clone for SocksMethod
§fn clone(&self) -> SocksMethod
fn clone(&self) -> SocksMethod
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for SocksMethod
impl Debug for SocksMethod
§impl<'de> Deserialize<'de> for SocksMethod
impl<'de> Deserialize<'de> for SocksMethod
§fn deserialize<D>(
deserializer: D,
) -> Result<SocksMethod, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<SocksMethod, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
§impl Display for SocksMethod
impl Display for SocksMethod
§impl From<SocksMethod> for u8
impl From<SocksMethod> for u8
§fn from(value: SocksMethod) -> u8
fn from(value: SocksMethod) -> u8
§impl From<u8> for SocksMethod
impl From<u8> for SocksMethod
§fn from(x: u8) -> SocksMethod
fn from(x: u8) -> SocksMethod
§impl Hash for SocksMethod
impl Hash for SocksMethod
§impl LowerHex for SocksMethod
impl LowerHex for SocksMethod
§impl Ord for SocksMethod
impl Ord for SocksMethod
§impl PartialEq for SocksMethod
impl PartialEq for SocksMethod
§impl PartialOrd for SocksMethod
impl PartialOrd for SocksMethod
§impl Serialize for SocksMethod
impl Serialize for SocksMethod
§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
§impl UpperHex for SocksMethod
impl UpperHex for SocksMethod
impl Copy for SocksMethod
impl Eq for SocksMethod
impl StructuralPartialEq for SocksMethod
Auto Trait Implementations§
impl Freeze for SocksMethod
impl RefUnwindSafe for SocksMethod
impl Send for SocksMethod
impl Sync for SocksMethod
impl Unpin for SocksMethod
impl UnwindSafe for SocksMethod
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Policy
that returns Action::Follow
only if self
and other
return
Action::Follow
. Read more§impl<T, U> RamaTryInto<U> for Twhere
U: RamaTryFrom<T>,
impl<T, U> RamaTryInto<U> for Twhere
U: RamaTryFrom<T>,
type Error = <U as RamaTryFrom<T>>::Error
fn rama_try_into(self) -> Result<U, <U as RamaTryFrom<T>>::Error>
§impl<T, U> RamaTryInto<U> for Twhere
U: RamaTryFrom<T>,
impl<T, U> RamaTryInto<U> for Twhere
U: RamaTryFrom<T>,
type Error = <U as RamaTryFrom<T>>::Error
fn rama_try_into(self) -> Result<U, <U as RamaTryFrom<T>>::Error>
§impl<T> ToSmolStr for T
impl<T> ToSmolStr for T
fn to_smolstr(&self) -> SmolStr
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.