Module property
Expand description
Property encoding, decoding, and iteration.
Properties is a borrowed byte slice iterable via PropertiesIter.
Each entry decodes into a Property variant that statically guarantees
the correct value type.
Properties and PropertiesBuf are parameterised over a
PropertyConstraint marker that determines which PropertyIds are
permitted. Per-packet type aliases (e.g. ConnectProperties,
PublishProperties) bake the allowed set into the type system so that
invalid properties cannot be constructed by mistake. Use AnyProperties
when no restrictions apply.
Modulesยง
- constraint ๐
- Per-packet property constraint markers.
- id ๐
- id_set ๐
- payload_
format ๐ - properties ๐
- properties_
buf ๐alloc
Structsยง
- Properties
- A borrowed view over a properties section.
- Properties
Buf alloc - Owned property bytes, the owned counterpart to
Properties<P>. - Properties
Iter - Iterator over property entries.
- Property
IdSet - A set of property ids.
- Property
IdSet Iter - An iterator over the property ids in a
PropertyIdSet.
Enumsยง
- Payload
Format - Payload format indicator (ยง3.3.2.3.2).
- Properties
BufError alloc - Error returned by fallible mutation methods on
PropertiesBuf. - Property
- A typed MQTT v5 property. Each variant statically guarantees the correct value type for the property identifier.
- Property
Id - Property identifier.
Constantsยง
- REPEATABLE_
PROPERTIES ๐ - Property IDs that may appear more than once in a properties section.
Traitsยง
- Property
Constraint - Marker trait describing which property IDs are permitted in a
PropertiesorPropertiesBufcollection.
Functionsยง
- read_
bool ๐
Type Aliasesยง
- AckProperties
Propertiesconstrained to ACK (PUBACK/PUBREC/PUBREL/PUBCOMP) property IDs.- AckProperties
Buf alloc PropertiesBufconstrained to ACK property IDs.- AnyProperties
Propertieswithout any restriction on allowed property IDs.- AnyProperties
Buf alloc PropertiesBufwithout any restriction on allowed property IDs.- Auth
Properties Propertiesconstrained to AUTH packet property IDs.- Auth
Properties Buf alloc PropertiesBufconstrained to AUTH packet property IDs.- Connack
Properties Propertiesconstrained to CONNACK packet property IDs.- Connack
Properties Buf alloc PropertiesBufconstrained to CONNACK packet property IDs.- Connect
Properties Propertiesconstrained to CONNECT packet property IDs.- Connect
Properties Buf alloc PropertiesBufconstrained to CONNECT packet property IDs.- Disconnect
Properties Propertiesconstrained to DISCONNECT packet property IDs.- Disconnect
Properties Buf alloc PropertiesBufconstrained to DISCONNECT packet property IDs.- Publish
Properties Propertiesconstrained to PUBLISH packet property IDs.- Publish
Properties Buf alloc PropertiesBufconstrained to PUBLISH packet property IDs.- Suback
Properties Propertiesconstrained to SUBACK packet property IDs.- Suback
Properties Buf alloc PropertiesBufconstrained to SUBACK packet property IDs.- Subscribe
Properties Propertiesconstrained to SUBSCRIBE packet property IDs.- Subscribe
Properties Buf alloc PropertiesBufconstrained to SUBSCRIBE packet property IDs.- Unsuback
Properties Propertiesconstrained to UNSUBACK packet property IDs.- Unsuback
Properties Buf alloc PropertiesBufconstrained to UNSUBACK packet property IDs.- Unsubscribe
Properties Propertiesconstrained to UNSUBSCRIBE packet property IDs.- Unsubscribe
Properties Buf alloc PropertiesBufconstrained to UNSUBSCRIBE packet property IDs.- Will
Properties Propertiesconstrained to Will property IDs.- Will
Properties Buf alloc PropertiesBufconstrained to Will property IDs.