pub struct UdpAssociation {
pub relay_addr: SocketAddr,
pub control_stream: Option<BoxStream>,
pub target: TargetAddr,
}Expand description
A UDP association through a SOCKS5 proxy.
Contains the relay address to send/receive UDP datagrams and the control stream that must remain open for the association lifetime.
Fields§
§relay_addr: SocketAddrThe UDP relay address of the SOCKS5 proxy.
control_stream: Option<BoxStream>The control TCP stream (must stay open for the association).
target: TargetAddrThe target address for datagrams.
Auto Trait Implementations§
impl !RefUnwindSafe for UdpAssociation
impl !Sync for UdpAssociation
impl !UnwindSafe for UdpAssociation
impl Freeze for UdpAssociation
impl Send for UdpAssociation
impl Unpin for UdpAssociation
impl UnsafeUnpin for UdpAssociation
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