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