pub enum PubSubCommand {
Subscribe {
topic: String,
},
Broadcast {
topic: String,
messages: Vec<ServerMessage>,
},
}Expand description
Internal commands collected from Context and executed by the adapter.
Variants§
Trait Implementations§
Source§impl Clone for PubSubCommand
impl Clone for PubSubCommand
Source§fn clone(&self) -> PubSubCommand
fn clone(&self) -> PubSubCommand
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 PubSubCommand
impl Debug for PubSubCommand
Source§impl PartialEq for PubSubCommand
impl PartialEq for PubSubCommand
Source§fn eq(&self, other: &PubSubCommand) -> bool
fn eq(&self, other: &PubSubCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PubSubCommand
Auto Trait Implementations§
impl Freeze for PubSubCommand
impl RefUnwindSafe for PubSubCommand
impl Send for PubSubCommand
impl Sync for PubSubCommand
impl Unpin for PubSubCommand
impl UnsafeUnpin for PubSubCommand
impl UnwindSafe for PubSubCommand
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