pub fn finish_write(&mut self) -> Result<(), Error<TcpStack::Error>> {
        if let Some(ref packet) = self.pending_write.take() {
            self.write(packet.as_slice())?;
        }

        Ok(())
    }
/// Finish writing an MQTT control packet to the interface if one exists.
Finish writing an MQTT control packet to the interface if one exists.
Finish writing an MQTT control packet to the interface if one exists .
pub fn finish_write(&mut self) -> Result<(), Error<TcpStack::Error>> {
        if let Some(ref packet) = self.pending_write.take() {
            self.write(packet.as_slice())?;
        }
        Ok(())
    }
pub fn finish_write ( & mut self ) -> Result < ( ) , Error < TcpStack :: Error > > { if let Some ( ref packet ) = self . pending_write . take ( ) { self . write ( packet . as_slice ( ) ) ? ; } Ok ( ( ) ) }
Finish writing an MQTT control packet to the interface if one exists.
Finish writing an MQTT control packet to the interface if one exists .
&mut self
&mut self