pub fn can_publish(&self, qos: QoS) -> bool {
        match qos {
            QoS::AtMostOnce => true,
            QoS::AtLeastOnce => self.pending_publish.len() < MSG_COUNT,
            QoS::ExactlyOnce => false,
        }
    }
/// Indicates if publish with QoS 1 is possible.
Indicates if publish with QoS 1 is possible.
Indicates if publish with QoS 1 is possible .
pub fn can_publish(&self, qos: QoS) -> bool {
        match qos {
            QoS::AtMostOnce => true,
            QoS::AtLeastOnce => self.pending_publish.len() < MSG_COUNT,
            QoS::ExactlyOnce => false,
        }
    }
pub fn can_publish ( & self , qos : QoS ) -> bool { match qos { QoS :: AtMostOnce => true , QoS :: AtLeastOnce => self . pending_publish . len ( ) < MSG_COUNT , QoS :: ExactlyOnce => false , } }
Indicates if publish with QoS 1 is possible.
Indicates if publish with QoS 1 is possible .
&self
qos
QoS