pub fn handle_puback(&mut self, id: u16) {
        self.pending_publish.remove(&id);
        let mut found = false;
        for i in 0..self.pending_publish_ordering.len() {
            if found {
                self.pending_publish_ordering[i - 1] = self.pending_publish_ordering[i];
            } else {
                if self.pending_publish_ordering[i] == id {
                    found = true;
                }
            }
        }
        self.pending_publish_ordering.pop();
    }
/// Delete given pending publish as the server took ownership of it
Delete given pending publish as the server took ownership of it
Delete given pending publish as the server took ownership of it
pub fn handle_puback(&mut self, id: u16) {
        self.pending_publish.remove(&id);
        let mut found = false;
        for i in 0..self.pending_publish_ordering.len() {
            if found {
                self.pending_publish_ordering[i - 1] = self.pending_publish_ordering[i];
            } else {
                if self.pending_publish_ordering[i] == id {
                    found = true;
                }
            }
        }
        self.pending_publish_ordering.pop();
    }
pub fn handle_puback ( & mut self , id : u16 ) { self . pending_publish . remove ( & id ) ; let mut found = false ; for i in 0 .. self . pending_publish_ordering . len ( ) { if found { self . pending_publish_ordering [ i - 1 ] = self . pending_publish_ordering [ i ] ; } else { if self . pending_publish_ordering [ i ] == id { found = true ; } } } self . pending_publish_ordering . pop ( ) ; }
Delete given pending publish as the server took ownership of it
Delete given pending publish as the server took ownership of it
&mut self
id
u16