[][src]Enum paho_mqtt::properties::PropertyCode

#[repr(u32)]pub enum PropertyCode {
    PayloadFormatIndicator,
    MessageExpiryInterval,
    ContentType,
    ResponseTopic,
    CorrelationData,
    SubscriptionIdentifier,
    SessionExpiryInterval,
    AssignedClientIdentifer,
    ServerKeepAlive,
    AuthenticationMethod,
    AuthenticationData,
    RequestProblemInformation,
    WillDelayInterval,
    RequestResponseInformation,
    ResponseInformation,
    ServerReference,
    ReasonString,
    ReceiveMaximum,
    TopicAliasMaximum,
    TopicAlias,
    MaximumQos,
    RetainAvailable,
    UserProperty,
    MaximumPacketSize,
    WildcardSubscriptionAvailable,
    SubscriptionIdentifiersAvailable,
    SharedSubscriptionAvailable,
}

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
MessageExpiryInterval
ContentType
ResponseTopic
CorrelationData
SubscriptionIdentifier
SessionExpiryInterval
AssignedClientIdentifer
ServerKeepAlive
AuthenticationMethod
AuthenticationData
RequestProblemInformation
WillDelayInterval
RequestResponseInformation
ResponseInformation
ServerReference
ReasonString
ReceiveMaximum
TopicAliasMaximum
TopicAlias
MaximumQos
RetainAvailable
UserProperty
MaximumPacketSize
WildcardSubscriptionAvailable
SubscriptionIdentifiersAvailable
SharedSubscriptionAvailable

Implementations

impl PropertyCode[src]

pub fn new(code: MQTTPropertyCodes) -> Option<Self>[src]

pub fn property_type(&self) -> PropertyType[src]

Get the property type from the code identifier.

pub fn type_of(&self) -> TypeId[src]

Gets the any::TypeId that corresponds to the property type.

Trait Implementations

impl Clone for PropertyCode[src]

impl Copy for PropertyCode[src]

impl Debug for PropertyCode[src]

impl PartialEq<PropertyCode> for PropertyCode[src]

impl StructuralPartialEq for PropertyCode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.