pub enum Command<PI> {
Join(Vec<PI>),
Broadcast(Bytes, Scope),
Quit,
}
Expand description
A command to the protocol state for a particular topic.
Variants§
Join(Vec<PI>)
Join this topic and connect to peers.
If the list of peers is empty, will prepare the state and accept incoming join requests, but only become operational after the first join request by another peer.
Broadcast(Bytes, Scope)
Broadcast a message for this topic.
Quit
Leave this topic and drop all state.
Trait Implementations§
Auto Trait Implementations§
impl<PI> !Freeze for Command<PI>
impl<PI> RefUnwindSafe for Command<PI>where
PI: RefUnwindSafe,
impl<PI> Send for Command<PI>where
PI: Send,
impl<PI> Sync for Command<PI>where
PI: Sync,
impl<PI> Unpin for Command<PI>where
PI: Unpin,
impl<PI> UnwindSafe for Command<PI>where
PI: UnwindSafe,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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