pub struct Socks4General { /* private fields */ }
Expand description
Represents the proxy constructor
that creates a S4GeneralStream
proxy stream when connected
Implementations§
Source§impl Socks4General
impl Socks4General
pub fn new( dest_addr: SocketAddrV4, ident: Cow<'static, str>, timeouts: ConnectionTimeouts, ) -> Socks4General
Trait Implementations§
Source§impl FromStr for Socks4General
Impl for parsing a Socks4General
from a string
impl FromStr for Socks4General
Impl for parsing a Socks4General
from a string
Source§impl ProxyConstructor for Socks4General
impl ProxyConstructor for Socks4General
Source§type ProxyStream = S4GeneralStream
type ProxyStream = S4GeneralStream
Represents the actual proxy stream,
returned by the connect function
Source§type Stream = TcpStream
type Stream = TcpStream
Represents a stream that the proxy
client operates on (sends protocol data over it)
Source§fn connect<'life0, 'async_trait>(
&'life0 mut self,
stream: Self::Stream,
) -> Pin<Box<dyn Future<Output = Result<Self::ProxyStream, Self::ErrorKind>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn connect<'life0, 'async_trait>(
&'life0 mut self,
stream: Self::Stream,
) -> Pin<Box<dyn Future<Output = Result<Self::ProxyStream, Self::ErrorKind>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Takes ownership of an existant stream,
establishes a proxixied connection on the stream
and returns the proxy stream if the connection was
successful, unless an error
Auto Trait Implementations§
impl Freeze for Socks4General
impl RefUnwindSafe for Socks4General
impl Send for Socks4General
impl Sync for Socks4General
impl Unpin for Socks4General
impl UnwindSafe for Socks4General
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