Struct socks5_server::connection::IncomingConnection
source · [−]pub struct IncomingConnection { /* private fields */ }Implementations
sourceimpl IncomingConnection
impl IncomingConnection
pub async fn handshake(self) -> Result<Connection>
pub fn local_addr(&self) -> Result<SocketAddr>
pub fn peer_addr(&self) -> Result<SocketAddr>
pub async fn shutdown(&mut self) -> Result<()>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for IncomingConnection
impl Send for IncomingConnection
impl Sync for IncomingConnection
impl Unpin for IncomingConnection
impl !UnwindSafe for IncomingConnection
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more