pub fn connect(&mut self, remote: SocketAddr) -> Result<(), Error<TcpStack::Error>> {
        let socket = self.socket.as_mut().ok_or(Error::NotReady)?;
        self.network_stack
            .connect(socket, remote)
            .map_err(|err| match err {
                nb::Error::WouldBlock => Error::WriteFail,
                nb::Error::Other(err) => Error::Network(err),
            })
    }
/// Connect the TCP socket to a remote address.
///
/// # Args
/// * `remote` - The address of the remote to connect to.
Connect the TCP socket to a remote address.
Connect the TCP socket to a remote address .
pub fn connect(&mut self, remote: SocketAddr) -> Result<(), Error<TcpStack::Error>> {
        let socket = self.socket.as_mut().ok_or(Error::NotReady)?;
        self.network_stack
            .connect(socket, remote)
            .map_err(|err| match err {
                nb::Error::WouldBlock => Error::WriteFail,
                nb::Error::Other(err) => Error::Network(err),
            })
    }
pub fn connect ( & mut self , remote : SocketAddr ) -> Result < ( ) , Error < TcpStack :: Error > > { let socket = self . socket . as_mut ( ) . ok_or ( Error :: NotReady ) ? ; self . network_stack . connect ( socket , remote ) . map_err ( | err | match err { nb :: Error :: WouldBlock => Error :: WriteFail , nb :: Error :: Other ( err ) => Error :: Network ( err ) , } ) }
Connect the TCP socket to a remote address.
Connect the TCP socket to a remote address .
&mut self
remote
SocketAddr
args
`remote` - The address of the remote to connect to.
` remote ` - The address of the remote to connect to .