/// check when the last control packet/pingreq packet is received and return
/// the status which tells if keep alive time has exceeded
/// NOTE: status will be checked for zero keepalive times also
check when the last control packet/pingreq packet is received and return
the status which tells if keep alive time has exceeded
NOTE: status will be checked for zero keepalive times also
check when the last control packet / pingreq packet is received and return the status which tells if keep alive time has exceeded NOTE : status will be checked for zero keepalive times also
fn handle_outgoing_ping<'b>(&mut self) -> Result<Packet<'b>, StateError> {
        // raise error if last ping didn't receive ack
        if self.await_pingresp {
            mqtt_log!(error, "Error awaiting for last ping response");
            return Err(StateError::AwaitPingResp);
        }
        self.await_pingresp = true;
        mqtt_log!(trace, "Pingreq");
        Ok(Packet::Pingreq)
    }
fn handle_outgoing_ping < ' b > ( & mut self ) -> Result < Packet < ' b > , StateError > { // raise error if last ping didn't receive ack if self . await_pingresp { mqtt_log ! ( error " " ) ; return Err ( StateError :: AwaitPingResp ) ; } self . await_pingresp = true ; mqtt_log ! ( trace " " ) ; Ok ( Packet :: Pingreq ) }
check when the last control packet/pingreq packet is received and return
the status which tells if keep alive time has exceeded
NOTE: status will be checked for zero keepalive times also
check when the last control packet / pingreq packet is received and return the status which tells if keep alive time has exceeded NOTE : status will be checked for zero keepalive times also
&mut self