pub struct RoutingTable { /* private fields */ }Expand description
Concurrent routing table mapping channels to active predicate subscriptions.
Implementations§
Source§impl RoutingTable
impl RoutingTable
Sourcepub fn register(
&self,
channel: impl Into<String>,
subscription: Subscription,
) -> Arc<Subscription> ⓘ
pub fn register( &self, channel: impl Into<String>, subscription: Subscription, ) -> Arc<Subscription> ⓘ
Registers subscription on channel and returns its shared table handle.
Sourcepub fn remove(&self, channel: &str, subscriber: &SubscriberId) -> bool
pub fn remove(&self, channel: &str, subscriber: &SubscriberId) -> bool
Removes subscriptions for subscriber on channel.
Sourcepub fn resolve(
&self,
channel: &str,
accessor: &dyn FieldAccessor,
) -> Vec<Arc<Subscription>>
pub fn resolve( &self, channel: &str, accessor: &dyn FieldAccessor, ) -> Vec<Arc<Subscription>>
Resolves all subscriptions on channel whose predicates match accessor.
Trait Implementations§
Source§impl Clone for RoutingTable
impl Clone for RoutingTable
Source§fn clone(&self) -> RoutingTable
fn clone(&self) -> RoutingTable
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RoutingTable
impl Debug for RoutingTable
Auto Trait Implementations§
impl Freeze for RoutingTable
impl RefUnwindSafe for RoutingTable
impl Send for RoutingTable
impl Sync for RoutingTable
impl Unpin for RoutingTable
impl UnsafeUnpin for RoutingTable
impl UnwindSafe for RoutingTable
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