pub enum PubSubMessage<K, P, Route> {
Subscribe {
topic: K,
subscriber: Route,
},
Unsubscribe {
topic: K,
subscriber: Route,
},
Publish {
topic: K,
value: P,
},
}Expand description
Operations accepted by PubSub.
Variants§
Subscribe
Idempotently subscribe one typed recipient.
Unsubscribe
Remove one existing subscription.
Publish
Publish one value to a point-in-time membership snapshot.
Auto Trait Implementations§
impl<K, P, Route> Freeze for PubSubMessage<K, P, Route>
impl<K, P, Route> RefUnwindSafe for PubSubMessage<K, P, Route>
impl<K, P, Route> Send for PubSubMessage<K, P, Route>
impl<K, P, Route> Sync for PubSubMessage<K, P, Route>
impl<K, P, Route> Unpin for PubSubMessage<K, P, Route>
impl<K, P, Route> UnsafeUnpin for PubSubMessage<K, P, Route>
impl<K, P, Route> UnwindSafe for PubSubMessage<K, P, Route>
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