pub struct ClientWrapper<C> { /* private fields */ }Implementations§
Source§impl ClientWrapper<SocksUdpClient>
impl ClientWrapper<SocksUdpClient>
pub async fn transfer_data<A2: Into<Address>>( &self, server_addr: A2, data: &[u8], timeout: Duration, ) -> Result<Vec<u8>>
pub async fn send_to<A2: Into<Address>>( &self, data: &[u8], server_addr: A2, ) -> Result<usize>
pub async fn recv( &self, timeout: Duration, buf: &mut Vec<u8>, ) -> Result<(usize, Address)>
pub async fn datagram<A1: Into<SocketAddr>>( proxy_addr: A1, auth: Option<UserKey>, ) -> Result<Self>
Auto Trait Implementations§
impl<C> Freeze for ClientWrapper<C>where
C: Freeze,
impl<C> RefUnwindSafe for ClientWrapper<C>where
C: RefUnwindSafe,
impl<C> Send for ClientWrapper<C>where
C: Send,
impl<C> Sync for ClientWrapper<C>where
C: Sync,
impl<C> Unpin for ClientWrapper<C>where
C: Unpin,
impl<C> UnsafeUnpin for ClientWrapper<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for ClientWrapper<C>where
C: UnwindSafe,
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