pub fn peer_addr(&self) -> Result<SocketAddr> {
        let socket = unsafe { Socket::from_raw_fd(self.fd) };
        let sock_addr = socket.peer_addr()?;
        socket.into_raw_fd();
        Ok(sock_addr.as_std().unwrap())
    }
/// Returns the socket address of the remote peer
Returns the socket address of the remote peer
Returns the socket address of the remote peer
pub fn peer_addr(&self) -> Result<SocketAddr> {
        let socket = unsafe { Socket::from_raw_fd(self.fd) };
        let sock_addr = socket.peer_addr()?;
        socket.into_raw_fd();
        Ok(sock_addr.as_std().unwrap())
    }
pub fn peer_addr ( & self ) -> Result < SocketAddr > { let socket = unsafe { Socket :: from_raw_fd ( self . fd ) } ; let sock_addr = socket . peer_addr ( ) ? ; socket . into_raw_fd ( ) ; Ok ( sock_addr . as_std ( ) . unwrap ( ) ) }
Returns the socket address of the remote peer
Returns the socket address of the remote peer
&self
&self