PropertyId

Enum PropertyId 

#[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

Property identifier.

Variants§

§

PayloadFormatIndicator = 1

Payload format indicator (0x01).

§

MessageExpiryInterval = 2

Message expiry interval (0x02).

§

ContentType = 3

Content type (0x03).

§

ResponseTopic = 8

Response topic (0x08).

§

CorrelationData = 9

Correlation data (0x09).

§

SubscriptionIdentifier = 11

Subscription identifier (0x0B).

§

SessionExpiryInterval = 17

Session expiry interval (0x11).

§

AssignedClientIdentifier = 18

Assigned client identifier (0x12).

§

ServerKeepAlive = 19

Server keep alive (0x13).

§

AuthenticationMethod = 21

Authentication method (0x15).

§

AuthenticationData = 22

Authentication data (0x16).

§

RequestProblemInformation = 23

Request problem information (0x17).

§

WillDelayInterval = 24

Will delay interval (0x18).

§

RequestResponseInformation = 25

Request response information (0x19).

§

ResponseInformation = 26

Response information (0x1A).

§

ServerReference = 28

Server reference (0x1C).

§

ReasonString = 31

Reason string (0x1F).

§

ReceiveMaximum = 33

Receive maximum (0x21).

§

TopicAliasMaximum = 34

Topic alias maximum (0x22).

§

TopicAlias = 35

Topic alias (0x23).

§

MaximumQoS = 36

Maximum QoS (0x24).

§

RetainAvailable = 37

Retain available (0x25).

§

UserProperty = 38

User property (0x26).

§

MaximumPacketSize = 39

Maximum packet size (0x27).

§

WildcardSubscriptionAvailable = 40

Wildcard subscription available (0x28).

§

SubscriptionIdentifierAvailable = 41

Subscription identifier available (0x29).

§

SharedSubscriptionAvailable = 42

Shared subscription available (0x2A).

Implementations§

§

impl PropertyId

pub(crate) const ALL: &[Self]

pub const fn from_vbi(v: Vbi) -> Option<Self>

Converts a raw property identifier value to the corresponding enum variant.

Returns None if the value does not correspond to a valid property identifier.

pub const fn to_vbi(self) -> Vbi

Returns the raw identifier value for this property.

Trait Implementations§

§

impl Clone for PropertyId

§

fn clone(&self) -> PropertyId

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for PropertyId

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl Hash for PropertyId

§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl Ord for PropertyId

§

fn cmp(&self, other: &PropertyId) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
§

impl PartialEq for PropertyId

§

fn eq(&self, other: &PropertyId) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for PropertyId

§

fn partial_cmp(&self, other: &PropertyId) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
§

impl Copy for PropertyId

§

impl Eq for PropertyId

§

impl StructuralPartialEq for PropertyId

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.