#[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
Dec | Hex | Name (usage) | Type | Packet / Will Properties |
---|---|---|---|---|
1 | 0x01 | Payload Format Indicator | Byte | PUBLISH, Will Properties |
2 | 0x02 | Message Expiry Interval | Four Byte Integer | PUBLISH, Will Properties |
3 | 0x03 | Content Type | UTF-8 Encoded String | PUBLISH, Will Properties |
8 | 0x08 | Response Topic | UTF-8 Encoded String | PUBLISH, Will Properties |
9 | 0x09 | Correlation Data | Binary Data | PUBLISH, Will Properties |
11 | 0x0B | Subscription Identifier | Variable Byte Integer | PUBLISH, SUBSCRIBE |
17 | 0x11 | Session Expiry Interval | Four Byte Integer | CONNECT, CONNACK, DISCONNECT |
18 | 0x12 | Assigned Client Identifier | UTF-8 Encoded String | CONNACK |
19 | 0x13 | Server Keep Alive | Two Byte Integer | CONNACK |
21 | 0x15 | Authentication Method | UTF-8 Encoded String | CONNECT, CONNACK, AUTH |
22 | 0x16 | Authentication Data | Binary Data | CONNECT, CONNACK, AUTH |
23 | 0x17 | Request Problem Information | Byte | CONNECT |
24 | 0x18 | Will Delay Interval | Four Byte Integer | Will Properties |
25 | 0x19 | Request Response Information | Byte | CONNECT |
26 | 0x1A | Response Information | UTF-8 Encoded String | CONNACK |
28 | 0x1C | Server Reference | UTF-8 Encoded String | CONNACK, DISCONNECT |
31 | 0x1F | Reason String | UTF-8 Encoded String | CONNACK, PUBACK, PUBREC, PUBREL, PUBCOMP, |
SUBACK, UNSUBACK, DISCONNECT, AUTH | ||||
33 | 0x21 | Receive Maximum | Two Byte Integer | CONNECT, CONNACK |
34 | 0x22 | Topic Alias Maximum | Two Byte Integer | CONNECT, CONNACK |
35 | 0x23 | Topic Alias | Two Byte Integer | PUBLISH |
36 | 0x24 | Maximum QoS | Byte | CONNACK |
37 | 0x25 | Retain Available | Byte | CONNACK |
38 | 0x26 | User Property | UTF-8 String Pair | CONNECT, CONNACK, PUBLISH, Will Properties, |
PUBACK, PUBREC, PUBREL, PUBCOMP, SUBSCRIBE, | ||||
SUBACK, UNSUBSCRIBE, UNSUBACK, DISCONNECT, AUTH | ||||
39 | 0x27 | Maximum Packet Size | Four Byte Integer | CONNECT, CONNACK |
40 | 0x28 | Wildcard Subscription Available | Byte | CONNACK |
41 | 0x29 | Subscription Identifier Available | Byte | CONNACK |
42 | 0x2A | Shared Subscription Available | Byte | CONNACK |
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
Implementations§
Trait Implementations§
Source§impl Clone for PropertyId
impl Clone for PropertyId
Source§fn clone(&self) -> PropertyId
fn clone(&self) -> PropertyId
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 moreSource§impl Debug for PropertyId
impl Debug for PropertyId
Source§impl Display for PropertyId
impl Display for PropertyId
Source§impl PartialEq for PropertyId
impl PartialEq for PropertyId
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
Mutably borrows from an owned value. Read more