PropertiesSize

Trait PropertiesSize 

Source
pub trait PropertiesSize {
    // Required method
    fn size(&self) -> usize;
}
Expand description

Trait for calculating the total encoded size of properties collection

This trait provides functionality to calculate the total number of bytes required to encode a collection of properties in the MQTT wire format.

Required Methods§

Source

fn size(&self) -> usize

Calculate the total encoded size of all properties in bytes

Returns the sum of the encoded sizes of all properties in the collection.

Implementors§

Source§

impl PropertiesSize for Properties

Implementation of PropertiesSize for Properties

Calculates the total size by summing the encoded size of each property.