Struct ntex_mqtt::v5::TopicFilter
source · pub struct TopicFilter(_);
Implementations§
source§impl TopicFilter
impl TopicFilter
pub fn levels(&self) -> &[TopicFilterLevel]
pub fn matches_filter(&self, topic: &TopicFilter) -> bool
pub fn matches_topic<S: AsRef<str> + ?Sized>(&self, topic: &S) -> bool
Trait Implementations§
source§impl Clone for TopicFilter
impl Clone for TopicFilter
source§fn clone(&self) -> TopicFilter
fn clone(&self) -> TopicFilter
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TopicFilter
impl Debug for TopicFilter
source§impl<'de> Deserialize<'de> for TopicFilter
impl<'de> Deserialize<'de> for TopicFilter
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for TopicFilter
impl Display for TopicFilter
source§impl From<TopicFilter> for Vec<TopicFilterLevel>
impl From<TopicFilter> for Vec<TopicFilterLevel>
source§fn from(t: TopicFilter) -> Self
fn from(t: TopicFilter) -> Self
Converts to this type from the input type.
source§impl FromStr for TopicFilter
impl FromStr for TopicFilter
source§impl Hash for TopicFilter
impl Hash for TopicFilter
source§impl PartialEq<TopicFilter> for TopicFilter
impl PartialEq<TopicFilter> for TopicFilter
source§fn eq(&self, other: &TopicFilter) -> bool
fn eq(&self, other: &TopicFilter) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TopicFilter
impl Serialize for TopicFilter
source§impl<'a> TryFrom<&'a [TopicFilterLevel]> for TopicFilter
impl<'a> TryFrom<&'a [TopicFilterLevel]> for TopicFilter
§type Error = TopicFilterError
type Error = TopicFilterError
The type returned in the event of a conversion error.
source§impl TryFrom<ByteString> for TopicFilter
impl TryFrom<ByteString> for TopicFilter
§type Error = TopicFilterError
type Error = TopicFilterError
The type returned in the event of a conversion error.
source§impl TryFrom<Vec<TopicFilterLevel, Global>> for TopicFilter
impl TryFrom<Vec<TopicFilterLevel, Global>> for TopicFilter
§type Error = TopicFilterError
type Error = TopicFilterError
The type returned in the event of a conversion error.