pub fn handle_outgoing_packet<'b>(
        &mut self,
        packet: Packet<'b>,
    ) -> Result<Packet<'b>, StateError> {
        match packet {
            Packet::Pingreq => self.handle_outgoing_ping(),
            _ => unreachable!(),
        }
    }
/// Consolidates handling of all outgoing mqtt packet logic. Returns a
/// packet which should be put on to the network by the eventloop
Consolidates handling of all outgoing mqtt packet logic. Returns a
packet which should be put on to the network by the eventloop
Consolidates handling of all outgoing mqtt packet logic . Returns a packet which should be put on to the network by the eventloop
pub fn handle_outgoing_packet<'b>(
        &mut self,
        packet: Packet<'b>,
    ) -> Result<Packet<'b>, StateError> {
        match packet {
            Packet::Pingreq => self.handle_outgoing_ping(),
            _ => unreachable!(),
        }
    }
pub fn handle_outgoing_packet < ' b > ( & mut self , packet : Packet < ' b > , ) -> Result < Packet < ' b > , StateError > { match packet { Packet :: Pingreq => self . handle_outgoing_ping ( ) , _ => unreachable ! ( ) , } }
Consolidates handling of all outgoing mqtt packet logic.
Consolidates handling of all outgoing mqtt packet logic .
&mut self
packet
Packet<'b>
&mut self
packet
Packet<'b>