pub struct TopicTree { /* private fields */ }Expand description
The TopicTree is a tree structure containing all the routing information for the subscribers Subscriptions are added or removed from this structure and all clients that are subscribed to a topic can be queried from here
Implementations§
Source§impl TopicTree
impl TopicTree
pub fn get_subscriptions(&self, publish_topic: &TopicName) -> Vec<Subscriber>
pub fn add_subscription( &mut self, topic_filter: TopicFilter, client_id: ClientId, qos: QoS, )
pub fn remove_subscription( &mut self, topic_filter: TopicFilter, client_id: ClientId, )
Trait Implementations§
Source§impl Absorb<TopicTreeOperations> for TopicTree
impl Absorb<TopicTreeOperations> for TopicTree
Source§fn absorb_first(&mut self, operation: &mut TopicTreeOperations, _: &Self)
fn absorb_first(&mut self, operation: &mut TopicTreeOperations, _: &Self)
Apply
O to the first of the two copies. Read moreSource§fn absorb_second(&mut self, operation: O, other: &Self)
fn absorb_second(&mut self, operation: O, other: &Self)
Apply
O to the second of the two copies. Read moreSource§fn drop_first(self: Box<Self>)
fn drop_first(self: Box<Self>)
Drop the first of the two copies. Read more
Source§fn drop_second(self: Box<Self>)
fn drop_second(self: Box<Self>)
Drop the second of the two copies. Read more
Auto Trait Implementations§
impl Freeze for TopicTree
impl RefUnwindSafe for TopicTree
impl Send for TopicTree
impl Sync for TopicTree
impl Unpin for TopicTree
impl UnsafeUnpin for TopicTree
impl UnwindSafe for TopicTree
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