Struct mqtt::topic_name::TopicName
[−]
[src]
pub struct TopicName(_);
Methods
impl TopicName[src]
fn new<S: Into<String>>(topic_name: S) -> Result<TopicName, TopicNameError>[src]
Creates a new topic name from string Return error if the string is not a valid topic name
unsafe fn new_unchecked(topic_name: String) -> TopicName[src]
Creates a new topic name from string without validation
Methods from Deref<Target = TopicNameRef>
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 Debug for TopicName[src]
impl Eq for TopicName[src]
impl PartialEq for TopicName[src]
fn eq(&self, __arg_0: &TopicName) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &TopicName) -> bool[src]
This method tests for !=.
impl Clone for TopicName[src]
fn clone(&self) -> TopicName[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Hash for TopicName[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)[src]
Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl Into<String> for TopicName[src]
impl Deref for TopicName[src]
type Target = TopicNameRef
The resulting type after dereferencing.
fn deref(&self) -> &TopicNameRef[src]
Dereferences the value.
impl<'a> Encodable<'a> for TopicName[src]
type Err = TopicNameError
fn encode<W: Write>(&self, writer: &mut W) -> Result<(), TopicNameError>[src]
Encodes to writer
fn encoded_length(&self) -> u32[src]
Length of bytes after encoded