pub enum TopicFilter {
Concrete {
filter: String,
level_count: u32,
},
Wildcard {
filter: String,
level_count: u32,
},
SharedConcrete {
group_name: String,
filter: String,
level_count: u32,
},
SharedWildcard {
group_name: String,
filter: String,
level_count: u32,
},
}
Expand description
A filter for subscribers to indicate which topics they want to receive messages from. Can contain wildcards. Shared topic filter example: $share/group_name_a/home/kitchen/temperature
Variants§
Implementations§
Source§impl<'a> TopicFilter
impl<'a> TopicFilter
pub fn levels(&'a self) -> TopicLevels<'a> ⓘ
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 Display for TopicFilter
impl Display for TopicFilter
Source§impl FromStr for TopicFilter
impl FromStr for TopicFilter
Source§impl PartialEq for TopicFilter
impl PartialEq for TopicFilter
impl StructuralPartialEq for TopicFilter
Auto Trait Implementations§
impl Freeze for TopicFilter
impl RefUnwindSafe for TopicFilter
impl Send for TopicFilter
impl Sync for TopicFilter
impl Unpin for TopicFilter
impl UnwindSafe for TopicFilter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more