pub struct SubMap<C> { /* private fields */ }Implementations
sourceimpl<C> SubMap<C> where
C: Hash + Eq + Clone,
impl<C> SubMap<C> where
C: Hash + Eq + Clone,
pub fn new() -> Self
pub fn separator(self, separator: char) -> Self
pub fn wildcard(self, wildcard: &str) -> Self
pub fn match_any(self, match_any: &str) -> Self
pub fn list_clients(&self) -> Vec<C>
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 get_subscribers(&self, topic: &str) -> HashSet<C>
pub fn subscription_count(&self) -> usize
pub fn client_count(&self) -> usize
Trait Implementations
Auto Trait Implementations
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> where
C: Unpin,
impl<C> UnwindSafe for SubMap<C> where
C: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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