Struct tor_socksproto::SocksCmd
source · pub struct SocksCmd(/* private fields */);Expand description
Command from the socks client telling us what to do.
Implementations§
source§impl SocksCmd
impl SocksCmd
sourcepub const UDP_ASSOCIATE: SocksCmd = _
pub const UDP_ASSOCIATE: SocksCmd = _
Not supported in Tor.
sourcepub const RESOLVE_PTR: SocksCmd = _
pub const RESOLVE_PTR: SocksCmd = _
Lookup an IP address, return a hostname. (Tor only.)
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 SocksCmd
impl<'arbitrary> Arbitrary<'arbitrary> for SocksCmd
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
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>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moresource§impl PartialEq for SocksCmd
impl PartialEq for SocksCmd
impl Copy for SocksCmd
impl Eq for SocksCmd
impl StructuralPartialEq for SocksCmd
Auto Trait Implementations§
impl Freeze for SocksCmd
impl RefUnwindSafe for SocksCmd
impl Send for SocksCmd
impl Sync for SocksCmd
impl Unpin for SocksCmd
impl UnwindSafe for SocksCmd
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
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>
Converts
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>
Converts
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