pub fn ready(&mut self) -> bool {
        match self.process(false) {
            Ok(_) => match self.network.is_complete(&self.id) {
                Ok(result) => result,
                Err(error) => {
                    self.error = Some(error);
                    true
                }
            },
            Err(error) => {
                self.error = Some(error);
                true
            }
        }
    }
/// Non blocking method for checking if data is ready
/// So if true is returned, wait() is non-blocking
/// Reads all pending data and returns true if response is ready
/// Errors are preserved and returned on wait() call
Non blocking method for checking if data is ready
So if true is returned, wait() is non-blocking
Reads all pending data and returns true if response is ready
Errors are preserved and returned on wait() call
Non blocking method for checking if data is ready So if true is returned wait () is non - blocking Reads all pending data and returns true if response is ready Errors are preserved and returned on wait () call
pub fn ready(&mut self) -> bool {
        match self.process(false) {
            Ok(_) => match self.network.is_complete(&self.id) {
                Ok(result) => result,
                Err(error) => {
                    self.error = Some(error);
                    true
                }
            },
            Err(error) => {
                self.error = Some(error);
                true
            }
        }
    }
pub fn ready ( & mut self ) -> bool { match self . process ( false ) { Ok ( _ ) => match self . network . is_complete ( & self . id ) { Ok ( result ) => result , Err ( error ) => { self . error = Some ( error ) ; true } } , Err ( error ) => { self . error = Some ( error ) ; true } } }
Non blocking method for checking if data is ready
So if true is returned, wait() is non-blocking
Reads all pending data and returns true if response is ready
Errors are preserved and returned on wait() call
Non blocking method for checking if data is ready So if true is returned wait () is non - blocking Reads all pending data and returns true if response is ready Errors are preserved and returned on wait () call
&mut self
&mut self