[][src]Struct mqtt::topic_name::TopicName

pub struct TopicName(_);

Topic name

http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718106

Methods

impl TopicName[src]

pub 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

pub unsafe fn new_unchecked(topic_name: String) -> TopicName[src]

Creates a new topic name from string without validation

Methods from Deref<Target = TopicNameRef>

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 Clone for TopicName[src]

impl Debug for TopicName[src]

impl Decodable for TopicName[src]

type Err = TopicNameError

type Cond = ()

impl Deref for TopicName[src]

type Target = TopicNameRef

The resulting type after dereferencing.

impl Encodable for TopicName[src]

type Err = TopicNameError

impl Eq for TopicName[src]

impl Hash for TopicName[src]

impl Into<String> for TopicName[src]

impl Into<TopicName> for TopicNameHeader[src]

impl Ord for TopicName[src]

impl PartialEq<TopicName> for TopicName[src]

impl PartialOrd<TopicName> for TopicName[src]

impl StructuralEq for TopicName[src]

impl StructuralPartialEq for TopicName[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Decodable for T where
    T: 'static + Packet + Debug
[src]

type Err = PacketError<T>

type Cond = FixedHeader

impl<T> Encodable for T where
    T: 'static + Packet + Debug
[src]

type Err = PacketError<T>

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.