Trait MqttWrite

Source
pub trait MqttWrite: WriteBytesExt {
    // Provided methods
    fn write_packet(&mut self, packet: &Packet) -> Result<()> { ... }
    fn write_mqtt_string(&mut self, string: &str) -> Result<()> { ... }
    fn write_remaining_length(&mut self, len: usize) -> Result<()> { ... }
}

Provided Methods§

Source

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

Source

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

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl MqttWrite for Cursor<Vec<u8>>

Source§

impl MqttWrite for TcpStream

Source§

impl<T: Write> MqttWrite for BufWriter<T>

Implementors§