#[repr(u8)]pub enum PropertyId {
Show 27 variants
PayloadFormatIndicator = 1,
MessageExpiryInterval = 2,
ContentType = 3,
ResponseTopic = 8,
CorrelationData = 9,
SubscriptionIdentifier = 11,
SessionExpiryInterval = 17,
AssignedClientIdentifier = 18,
ServerKeepAlive = 19,
AuthenticationMethod = 21,
AuthenticationData = 22,
RequestProblemInformation = 23,
WillDelayInterval = 24,
RequestResponseInformation = 25,
ResponseInformation = 26,
ServerReference = 28,
ReasonString = 31,
ReceiveMaximum = 33,
TopicAliasMaximum = 34,
TopicAlias = 35,
MaximumQos = 36,
RetainAvailable = 37,
UserProperty = 38,
MaximumPacketSize = 39,
WildcardSubscriptionAvailable = 40,
SubscriptionIdentifierAvailable = 41,
SharedSubscriptionAvailable = 42,
}
Expand description
MQTT v5.0 Property Identifiers
This enum represents all property identifiers defined in the MQTT v5.0 specification. Properties are used to extend MQTT packets with additional metadata and control information.
Each property has a unique identifier (1-42) and is associated with specific packet types. Properties provide enhanced functionality such as message expiry, user properties, authentication data, and various server capabilities.
§Specification Reference
See MQTT v5.0 Properties for detailed information about each property.
§Examples
use mqtt_protocol_core::mqtt;
let property_id = mqtt::packet::PropertyId::MessageExpiryInterval;
assert_eq!(property_id.as_u8(), 2);
assert_eq!(property_id.as_str(), "message_expiry_interval");
Variants§
PayloadFormatIndicator = 1
Indicates the format of the payload in PUBLISH packets (0=binary, 1=UTF-8)
MessageExpiryInterval = 2
Message expiry interval in seconds
ContentType = 3
Content type of the application message
ResponseTopic = 8
Topic name for response messages
CorrelationData = 9
Correlation data for request/response messaging
SubscriptionIdentifier = 11
Subscription identifier for matching subscriptions
SessionExpiryInterval = 17
Session expiry interval in seconds
AssignedClientIdentifier = 18
Client identifier assigned by the server
ServerKeepAlive = 19
Keep alive time assigned by the server
AuthenticationMethod = 21
Authentication method name
AuthenticationData = 22
Authentication data
RequestProblemInformation = 23
Request problem information flag
WillDelayInterval = 24
Will delay interval in seconds
RequestResponseInformation = 25
Request response information flag
ResponseInformation = 26
Response information string
ServerReference = 28
Server reference for redirection
ReasonString = 31
Human readable reason string
ReceiveMaximum = 33
Maximum number of concurrent PUBLISH packets
TopicAliasMaximum = 34
Maximum topic alias value
TopicAlias = 35
Topic alias value
MaximumQos = 36
Maximum QoS level supported
RetainAvailable = 37
Retain availability flag
UserProperty = 38
User-defined property key-value pair
MaximumPacketSize = 39
Maximum packet size
WildcardSubscriptionAvailable = 40
Wildcard subscription availability flag
SubscriptionIdentifierAvailable = 41
Subscription identifier availability flag
Shared subscription availability flag
Implementations§
Trait Implementations§
Source§impl Clone for PropertyId
impl Clone for PropertyId
Source§fn clone(&self) -> PropertyId
fn clone(&self) -> PropertyId
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PropertyId
impl Debug for PropertyId
Source§impl<'de> Deserialize<'de> for PropertyId
impl<'de> Deserialize<'de> for PropertyId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for PropertyId
impl Display for PropertyId
Source§impl PartialEq for PropertyId
impl PartialEq for PropertyId
Source§impl Serialize for PropertyId
impl Serialize for PropertyId
Source§impl TryFrom<u8> for PropertyId
impl TryFrom<u8> for PropertyId
Source§type Error = TryFromPrimitiveError<PropertyId>
type Error = TryFromPrimitiveError<PropertyId>
Source§impl TryFromPrimitive for PropertyId
impl TryFromPrimitive for PropertyId
const NAME: &'static str = "PropertyId"
type Primitive = u8
type Error = TryFromPrimitiveError<PropertyId>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for PropertyId
impl Eq for PropertyId
impl StructuralPartialEq for PropertyId
Auto Trait Implementations§
impl Freeze for PropertyId
impl RefUnwindSafe for PropertyId
impl Send for PropertyId
impl Sync for PropertyId
impl Unpin for PropertyId
impl UnwindSafe for PropertyId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.