Struct mqtt::topic_name::TopicName [−][src]
pub struct TopicName(_);Expand description
Topic name
http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718106
Implementations
Creates a new topic name from string Return error if the string is not a valid topic name
Creates a new topic name from string without validation
Safety
Topic names’ syntax is defined in MQTT specification. Creating a name from raw string may cause errors
Methods from Deref<Target = TopicNameRef>
Check if this topic name is only for server.
Topic names that beginning with a ‘$’ character are reserved for servers
Trait Implementations
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
type Error = TopicNameDecodeError
Decodes object with additional data (or hints)
type Target = TopicNameRef
type Target = TopicNameRef
The resulting type after dereferencing.
Dereferences the value.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for TopicName
impl UnwindSafe for TopicName
Blanket Implementations
Mutably borrows from an owned value. Read more