socks5_impl::client

Type Alias SocksUdpClient

Source
pub type SocksUdpClient = SocksDatagram<GuardTcpStream>;

Aliased Type§

struct SocksUdpClient { /* private fields */ }

Trait Implementations§

Source§

impl UdpClientTrait for SocksUdpClient

Source§

fn send_to<'life0, 'life1, 'async_trait, A>( &'life0 mut self, buf: &'life1 [u8], addr: A, ) -> Pin<Box<dyn Future<Output = Result<usize, Error>> + Send + 'async_trait>>
where A: Into<Address> + Send + Unpin + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn recv_from<'life0, 'life1, 'async_trait>( &'life0 mut self, timeout: Duration, buf: &'life1 mut Vec<u8>, ) -> Pin<Box<dyn Future<Output = Result<(usize, Address), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,