pub struct SocksProxyHandshake { /* private fields */ }
Available on crate feature
proxy-handshake
only.Expand description
The Proxy (responder) side of an ongoing SOCKS handshake.
Create you have one of these with SocksProxyHandshake::new()
,
and then use Handshake::step
to drive it.
Eventually you will hopefully obtain a SocksRequest
,
on which you should call .reply()
,
and send the resulting data to the peer.
Implementations§
Source§impl SocksProxyHandshake
impl SocksProxyHandshake
Sourcepub fn into_request(self) -> Option<SocksRequest>
pub fn into_request(self) -> Option<SocksRequest>
Consume this handshake’s state; if it finished successfully, return a SocksRequest.
Trait Implementations§
Source§impl Clone for SocksProxyHandshake
impl Clone for SocksProxyHandshake
Source§fn clone(&self) -> SocksProxyHandshake
fn clone(&self) -> SocksProxyHandshake
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 SocksProxyHandshake
impl Debug for SocksProxyHandshake
Source§impl Default for SocksProxyHandshake
impl Default for SocksProxyHandshake
Source§impl Handshake for SocksProxyHandshake
impl Handshake for SocksProxyHandshake
Source§type Output = <Option<SocksRequest> as IntoIterator>::Item
type Output = <Option<SocksRequest> as IntoIterator>::Item
Available on crate features
proxy-handshake
or client-handshake
only.Output from the handshake: the meaning, as we understand it
Auto Trait Implementations§
impl Freeze for SocksProxyHandshake
impl RefUnwindSafe for SocksProxyHandshake
impl Send for SocksProxyHandshake
impl Sync for SocksProxyHandshake
impl Unpin for SocksProxyHandshake
impl UnwindSafe for SocksProxyHandshake
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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>
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