[][src]Trait rumq_core::mqtt4::MqttWrite

pub trait MqttWrite: WriteBytesExt {
    fn mqtt_write(&mut self, packet: &Packet) -> Result<(), Error> { ... }
fn write_mqtt_string(&mut self, string: &str) -> Result<(), Error> { ... }
fn write_remaining_length(&mut self, len: usize) -> Result<(), Error> { ... } }

Mqtt awareness on top of Write

Provided methods

fn mqtt_write(&mut self, packet: &Packet) -> Result<(), Error>

fn write_mqtt_string(&mut self, string: &str) -> Result<(), Error>

fn write_remaining_length(&mut self, len: usize) -> Result<(), Error>

Loading content...

Implementors

impl<W: WriteBytesExt + ?Sized> MqttWrite for W[src]

Implement MqttWrite for every AsyncWriteExt type (and hence AsyncWrite type)

Loading content...