Struct mqtt::topic_name::TopicNameRef [−][src]
#[repr(transparent)]pub struct TopicNameRef(_);Expand description
Reference to a topic name
Implementations
Creates a new topic name from string Return error if the string is not a valid topic name
pub fn new_mut<S: AsMut<str> + ?Sized>(
topic_name: &mut S
) -> Result<&mut TopicNameRef, TopicNameError>
pub fn new_mut<S: AsMut<str> + ?Sized>(
topic_name: &mut S
) -> Result<&mut TopicNameRef, TopicNameError>
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
pub unsafe fn new_mut_unchecked<S: AsMut<str> + ?Sized>(
topic_name: &mut S
) -> &mut TopicNameRef
pub unsafe fn new_mut_unchecked<S: AsMut<str> + ?Sized>(
topic_name: &mut S
) -> &mut TopicNameRef
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
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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
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