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§
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<()>
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.