fn is_connected<N: Dns + TcpClientStack<TcpSocket = S> + ?Sized>(
        &self,
        network: &mut N,
    ) -> Result<bool, NetworkError> {
        match self.socket {
            Some(ref socket) => network
                .is_connected(socket)
                .map_err(|_e| NetworkError::SocketClosed),
            None => Err(NetworkError::SocketClosed),
        }
    }
/// Checks if this socket is present and connected. Raises `NetworkError` when
/// the socket is present and in its error state.
Checks if this socket is present and connected. Raises `NetworkError` when
the socket is present and in its error state.
Checks if this socket is present and connected . Raises ` NetworkError ` when the socket is present and in its error state .
fn is_connected<N: Dns + TcpClientStack<TcpSocket = S> + ?Sized>(
        &self,
        network: &mut N,
    ) -> Result<bool, NetworkError> {
        match self.socket {
            Some(ref socket) => network
                .is_connected(socket)
                .map_err(|_e| NetworkError::SocketClosed),
            None => Err(NetworkError::SocketClosed),
        }
    }
fn is_connected < N : Dns + TcpClientStack < TcpSocket = S > + ? Sized > ( & self , network : & mut N , ) -> Result < bool , NetworkError > { match self . socket { Some ( ref socket ) => network . is_connected ( socket ) . map_err ( | _e | NetworkError :: SocketClosed ) , None => Err ( NetworkError :: SocketClosed ) , } }
Checks if this socket is present and connected.
Checks if this socket is present and connected .
&self
network
&mut N
&self
network
&mut N