Struct socks5_impl::server::connection::associate::UdpAssociate
source · pub struct UdpAssociate<S> { /* private fields */ }
Expand description
Socks5 connection type UdpAssociate
Implementations§
source§impl<S: Default> UdpAssociate<S>
impl<S: Default> UdpAssociate<S>
sourcepub fn local_addr(&self) -> Result<SocketAddr>
pub fn local_addr(&self) -> Result<SocketAddr>
Returns the local address that this stream is bound to.
sourcepub fn peer_addr(&self) -> Result<SocketAddr>
pub fn peer_addr(&self) -> Result<SocketAddr>
Returns the remote address that this stream is connected to.
source§impl UdpAssociate<NeedReply>
impl UdpAssociate<NeedReply>
source§impl UdpAssociate<Ready>
impl UdpAssociate<Ready>
sourcepub async fn wait_until_closed(&mut self) -> Result<()>
pub async fn wait_until_closed(&mut self) -> Result<()>
Wait until the client closes this TCP connection.
Socks5 protocol defines that when the client closes the TCP connection used to send the associate command, the server should release the associated UDP socket.
Trait Implementations§
Auto Trait Implementations§
impl<S> RefUnwindSafe for UdpAssociate<S>where S: RefUnwindSafe,
impl<S> Send for UdpAssociate<S>where S: Send,
impl<S> Sync for UdpAssociate<S>where S: Sync,
impl<S> Unpin for UdpAssociate<S>where S: Unpin,
impl<S> UnwindSafe for UdpAssociate<S>where S: 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