Enum PropertyCode
#[repr(u32)]pub enum PropertyCode {
Show 27 variants
PayloadFormatIndicator = 1,
MessageExpiryInterval = 2,
ContentType = 3,
ResponseTopic = 8,
CorrelationData = 9,
SubscriptionIdentifier = 11,
SessionExpiryInterval = 17,
AssignedClientIdentifer = 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,
SubscriptionIdentifiersAvailable = 41,
SharedSubscriptionAvailable = 42,
}Expand description
The enumerated codes for the MQTT v5 properties.
The property code defines both the meaning of the value in the property (Correlation Data, Server Keep Alive) and the data type held by the property.
Variants§
PayloadFormatIndicator = 1
MessageExpiryInterval = 2
ContentType = 3
ResponseTopic = 8
CorrelationData = 9
SubscriptionIdentifier = 11
SessionExpiryInterval = 17
AssignedClientIdentifer = 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
SubscriptionIdentifiersAvailable = 41
Implementations§
§impl PropertyCode
impl PropertyCode
pub fn new(code: u32) -> Option<PropertyCode>
pub fn new(code: u32) -> Option<PropertyCode>
Tries to create a PropertyCode from the integer value.
pub fn property_type(&self) -> PropertyType
pub fn property_type(&self) -> PropertyType
Get the property type from the code identifier.
Trait Implementations§
§impl Clone for PropertyCode
impl Clone for PropertyCode
§fn clone(&self) -> PropertyCode
fn clone(&self) -> PropertyCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for PropertyCode
impl Debug for PropertyCode
§impl PartialEq for PropertyCode
impl PartialEq for PropertyCode
§impl TryFrom<u32> for PropertyCode
impl TryFrom<u32> for PropertyCode
impl Copy for PropertyCode
impl Eq for PropertyCode
impl StructuralPartialEq for PropertyCode
Auto Trait Implementations§
impl Freeze for PropertyCode
impl RefUnwindSafe for PropertyCode
impl Send for PropertyCode
impl Sync for PropertyCode
impl Unpin for PropertyCode
impl UnwindSafe for PropertyCode
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