Struct socks5_impl::server::connection::associate::Associate
source · pub struct Associate<S> { /* private fields */ }Expand description
Socks5 connection type Associate
Implementations§
source§impl<S: Default> Associate<S>
impl<S: Default> Associate<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.
Trait Implementations§
Auto Trait Implementations§
impl<S> RefUnwindSafe for Associate<S>where S: RefUnwindSafe,
impl<S> Send for Associate<S>where S: Send,
impl<S> Sync for Associate<S>where S: Sync,
impl<S> Unpin for Associate<S>where S: Unpin,
impl<S> UnwindSafe for Associate<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