pub struct RouteKey {
pub capsule_uuid: Uuid,
pub topic_pattern: String,
pub subscription_rep: u64,
}Expand description
Composite identity of a single routed subscription on the bus.
Two guest capsules subscribing to the same pattern receive distinct
RouteKeys — subscription_rep is unique per call — so messages
fan out per subscriber rather than being shared like the broadcast
channel.
Fields§
§capsule_uuid: UuidCapsule UUID owning the subscription. Bounded by deployed capsule count.
topic_pattern: StringTopic pattern as supplied to subscribe_topic_routed.
subscription_rep: u64Monotonic per-bus subscription id; distinguishes multiple
subscriptions of the same (capsule_uuid, topic_pattern) pair.
Trait Implementations§
impl Eq for RouteKey
impl StructuralPartialEq for RouteKey
Auto Trait Implementations§
impl Freeze for RouteKey
impl RefUnwindSafe for RouteKey
impl Send for RouteKey
impl Sync for RouteKey
impl Unpin for RouteKey
impl UnsafeUnpin for RouteKey
impl UnwindSafe for RouteKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.