pub struct SubMap<C> { /* private fields */ }Implementations§
Source§impl<C> SubMap<C>where
C: Client,
impl<C> SubMap<C>where
C: Client,
pub fn new() -> Self
pub fn separator(self, separator: char) -> Self
pub fn formula_prefix(self, prefix: &str) -> Self
pub fn regex_prefix(self, prefix: &str) -> Self
pub fn wildcard(self, wildcard: &str) -> Self
pub fn match_any(self, match_any: &str) -> Self
pub fn wildcard_multiple(self, wildcard_multiple: &[&str]) -> Self
pub fn match_any_multiple(self, match_any_multiple: &[&str]) -> Self
pub fn list_clients(&self) -> Vec<C>
pub fn list_topics(&self, client: &C) -> Vec<&str>
pub fn is_empty(&self) -> bool
pub fn register_client(&mut self, client: &C) -> bool
pub fn unregister_client(&mut self, client: &C) -> bool
pub fn subscribe(&mut self, topic: &str, client: &C) -> bool
pub fn unsubscribe(&mut self, topic: &str, client: &C) -> bool
pub fn unsubscribe_all(&mut self, client: &C) -> bool
pub fn get_subscribers(&self, topic: &str) -> Set<C>
pub fn is_subscribed(&self, topic: &str) -> bool
pub fn subscription_count(&self) -> usize
pub fn client_count(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl<C> Freeze for SubMap<C>
impl<C> RefUnwindSafe for SubMap<C>where
C: RefUnwindSafe,
impl<C> Send for SubMap<C>where
C: Send,
impl<C> Sync for SubMap<C>where
C: Sync,
impl<C> Unpin for SubMap<C>
impl<C> UnwindSafe for SubMap<C>where
C: RefUnwindSafe,
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