pub struct PingreqPacket {
    pub fixed_header: u8,
    pub remain_len: u32,
}

Fields§

§fixed_header: u8§remain_len: u32

Trait Implementations§

Method encode provide way how to transfer Packet struct into Byte array (buffer)
Decode method is opposite of encode - decoding Byte array and mapping it into corresponding Packet struct
Setter method for packet properties len - not all Packet types support this
Setter method for packet properties len - not all Packet types support this
Method enables pushing new property into packet properties
Returns if property is allowed for packet
Setter for packet fixed header
Setter for remaining len
Method enables adding properties from client config - each packet decides if property can be used with that or not
Method is decoding Byte array pointing to properties into heapless Vec in packet. If decoding goes wrong method is returning Error
Method is decoding packet header into fixed header part and remaining length

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.