pub struct MqttCodec { /* private fields */ }
Expand description
MqttCodec knows how to serialize and deserialize mqtt packets from a raw stream of bytes
Implementations§
Trait Implementations§
Source§impl Decoder for MqttCodec
impl Decoder for MqttCodec
Source§fn decode(&mut self, buf: &mut BytesMut) -> Result<Option<Packet>, Error>
fn decode(&mut self, buf: &mut BytesMut) -> Result<Option<Packet>, Error>
Attempts to decode a frame from the provided buffer of bytes. Read more
Auto Trait Implementations§
impl Freeze for MqttCodec
impl RefUnwindSafe for MqttCodec
impl Send for MqttCodec
impl Sync for MqttCodec
impl Unpin for MqttCodec
impl UnwindSafe for MqttCodec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more