Enum mqtt3::Topic [] [src]

pub enum Topic {
    Normal(String),
    System(String),
    Blank,
    SingleWildcard,
    MultiWildcard,
}

FIXME: replace String with &str

Variants

Normal(String)System(String)BlankSingleWildcardMultiWildcard

Methods

impl Topic
[src]

fn validate(topic: &str) -> bool

fn fit(&self, other: &Topic) -> bool

Trait Implementations

impl PartialEq for Topic
[src]

fn eq(&self, __arg_0: &Topic) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Topic) -> bool

This method tests for !=.

impl Clone for Topic
[src]

fn clone(&self) -> Topic

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for Topic
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Into<String> for Topic
[src]

fn into(self) -> String

Performs the conversion.