Struct shadowsocks_service::local::socks::client::socks5::udp_client::Socks5UdpClient [−][src]
pub struct Socks5UdpClient { /* fields omitted */ }
Expand description
Socks5 proxy client
Implementations
Create a new UDP associate client binds to a specific address
Create a new UDP associate to proxy
Returns a future that sends data on the socket to the given address.
Returns a future that receives a single datagram on the socket. On success, the future resolves to the number of bytes read and the origin.
The function must be called with valid byte array buf of sufficient size to hold the message bytes. If a message is too long to fit in the supplied buffer, excess bytes may be discarded.
Auto Trait Implementations
impl !RefUnwindSafe for Socks5UdpClient
impl Send for Socks5UdpClient
impl Sync for Socks5UdpClient
impl Unpin for Socks5UdpClient
impl !UnwindSafe for Socks5UdpClient
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more