Enum ntex_mqtt::v3::codec::Level [−][src]
Variants
Normal(String)
Metadata(String)
Implementations
impl Level
[src]
impl Level
[src]pub fn parse<T: AsRef<str>>(s: T) -> Result<Level, TopicError>
[src]
pub fn normal<T: AsRef<str>>(s: T) -> Level
[src]
pub fn metadata<T: AsRef<str>>(s: T) -> Level
[src]
pub fn value(&self) -> Option<&str>
[src]
pub fn is_normal(&self) -> bool
[src]
pub fn is_metadata(&self) -> bool
[src]
pub fn is_valid(&self) -> bool
[src]
Trait Implementations
impl FromStr for Level
[src]
impl FromStr for Level
[src]type Err = TopicError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, TopicError>
[src]
impl StructuralEq for Level
[src]
impl StructuralEq for Level
[src]impl StructuralPartialEq for Level
[src]
impl StructuralPartialEq for Level
[src]Auto Trait Implementations
impl RefUnwindSafe for Level
impl RefUnwindSafe for Level
impl UnwindSafe for Level
impl UnwindSafe for Level
Blanket Implementations
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self