[−][src]Struct mqtt::topic_name::TopicNameRef
Reference to a topic name
Methods
impl TopicNameRef
[src]
pub fn new<S: AsRef<str> + ?Sized>(
topic_name: &S
) -> Result<&TopicNameRef, TopicNameError>
[src]
topic_name: &S
) -> Result<&TopicNameRef, TopicNameError>
Creates a new topic name from string Return error if the string is not a valid topic name
pub unsafe fn new_unchecked<S: AsRef<str> + ?Sized>(
topic_name: &S
) -> &TopicNameRef
[src]
topic_name: &S
) -> &TopicNameRef
Creates a new topic name from string without validation
pub fn is_server_specific(&self) -> bool
[src]
Check if this topic name is only for server.
Topic names that beginning with a '$' character are reserved for servers
Trait Implementations
impl PartialOrd<TopicNameRef> for TopicNameRef
[src]
fn partial_cmp(&self, other: &TopicNameRef) -> Option<Ordering>
[src]
fn lt(&self, other: &TopicNameRef) -> bool
[src]
fn le(&self, other: &TopicNameRef) -> bool
[src]
fn gt(&self, other: &TopicNameRef) -> bool
[src]
fn ge(&self, other: &TopicNameRef) -> bool
[src]
impl PartialEq<TopicNameRef> for TopicNameRef
[src]
fn eq(&self, other: &TopicNameRef) -> bool
[src]
fn ne(&self, other: &TopicNameRef) -> bool
[src]
impl Ord for TopicNameRef
[src]
fn cmp(&self, other: &TopicNameRef) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self
[src]
🔬 This is a nightly-only experimental API. (
clamp
)Restrict a value to a certain interval. Read more