Enum mqtt::Level
[−]
[src]
pub enum Level { Normal(String), Metadata(String), Blank, SingleWildcard, MultiWildcard, }
Variants
Normal(String)
Metadata(String)
Blank
SingleWildcard
MultiWildcard
Methods
impl Level
[src]
fn parse<T: AsRef<str>>(s: T) -> Result<Level, Error>
[src]
fn normal<T: AsRef<str>>(s: T) -> Level
[src]
fn metadata<T: AsRef<str>>(s: T) -> Level
[src]
fn value(&self) -> Option<&str>
[src]
fn is_normal(&self) -> bool
[src]
fn is_metadata(&self) -> bool
[src]
fn is_valid(&self) -> bool
[src]
Trait Implementations
impl Debug for Level
[src]
impl Eq for Level
[src]
impl PartialEq for Level
[src]
fn eq(&self, __arg_0: &Level) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Level) -> bool
[src]
This method tests for !=
.
impl Clone for Level
[src]
fn clone(&self) -> Level
[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 Level
[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 Send for Level
[src]
impl Sync for Level
[src]
impl FromStr for Level
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Error>
[src]
Parses a string s
to return a value of this type. Read more
impl Display for Level
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Div<Level> for Level
[src]
type Output = Topic
The resulting type after applying the /
operator.
fn div(self, rhs: Level) -> Topic
[src]
Performs the /
operation.