Struct ntex_mqtt::TopicFilter
source · pub struct TopicFilter(_);
Implementations
sourceimpl 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
sourceimpl Clone for TopicFilter
impl Clone for TopicFilter
sourcefn clone(&self) -> TopicFilter
fn clone(&self) -> TopicFilter
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TopicFilter
impl Debug for TopicFilter
sourceimpl<'de> Deserialize<'de> for TopicFilter
impl<'de> Deserialize<'de> for TopicFilter
sourcefn 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
sourceimpl Display for TopicFilter
impl Display for TopicFilter
sourceimpl From<TopicFilter> for Vec<TopicFilterLevel>
impl From<TopicFilter> for Vec<TopicFilterLevel>
sourcefn from(t: TopicFilter) -> Self
fn from(t: TopicFilter) -> Self
Converts to this type from the input type.
sourceimpl FromStr for TopicFilter
impl FromStr for TopicFilter
sourceimpl Hash for TopicFilter
impl Hash for TopicFilter
sourceimpl PartialEq<TopicFilter> for TopicFilter
impl PartialEq<TopicFilter> for TopicFilter
sourcefn eq(&self, other: &TopicFilter) -> bool
fn eq(&self, other: &TopicFilter) -> bool
sourceimpl Serialize for TopicFilter
impl Serialize for TopicFilter
sourceimpl<'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.
sourcefn try_from(s: &[TopicFilterLevel]) -> Result<Self, Self::Error>
fn try_from(s: &[TopicFilterLevel]) -> Result<Self, Self::Error>
Performs the conversion.
sourceimpl 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.
sourcefn try_from(value: ByteString) -> Result<Self, Self::Error>
fn try_from(value: ByteString) -> Result<Self, Self::Error>
Performs the conversion.
sourceimpl 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.
impl Eq for TopicFilter
impl StructuralEq for TopicFilter
impl StructuralPartialEq for TopicFilter
Auto Trait Implementations
impl !RefUnwindSafe for TopicFilter
impl Send for TopicFilter
impl Sync for TopicFilter
impl Unpin for TopicFilter
impl !UnwindSafe for TopicFilter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more