pub struct SocksClientBuilder { /* private fields */ }
Expand description
A builder for creating SOCKS clients.
Implementations§
Source§impl SocksClientBuilder
impl SocksClientBuilder
Sourcepub fn new(proxyip: &str, proxyport: u16) -> Self
pub fn new(proxyip: &str, proxyport: u16) -> Self
Creates a new SocksClientBuilder
with the specified proxy IP and port.
Sourcepub fn build_tcp_client(self) -> Box<dyn SocksConnect>
pub fn build_tcp_client(self) -> Box<dyn SocksConnect>
Builds a TCP client for connecting to a target address.
Sourcepub fn build_listen_client(self) -> Box<dyn SocksBind>
pub fn build_listen_client(self) -> Box<dyn SocksBind>
Builds a client for binding to a target address.
Sourcepub fn build_udp_client(self) -> Box<dyn SocksUdp>
pub fn build_udp_client(self) -> Box<dyn SocksUdp>
Builds a client for associating a UDP socket.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SocksClientBuilder
impl RefUnwindSafe for SocksClientBuilder
impl Send for SocksClientBuilder
impl Sync for SocksClientBuilder
impl Unpin for SocksClientBuilder
impl UnwindSafe for SocksClientBuilder
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