pub enum ControlMessage<ID> {
Create {
initial_members: Vec<ID>,
},
Update,
Remove {
removed: ID,
},
Add {
added: ID,
},
}
Expand description
Message that should be broadcast to the group.
The control message must be distributed to the other group members through Authenticated Causal Broadcast, calling the process function on the recipient when they are delivered.
Variants§
Trait Implementations§
Source§impl<ID: Clone> Clone for ControlMessage<ID>
impl<ID: Clone> Clone for ControlMessage<ID>
Source§fn clone(&self) -> ControlMessage<ID>
fn clone(&self) -> ControlMessage<ID>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<ID: Debug> Debug for ControlMessage<ID>
impl<ID: Debug> Debug for ControlMessage<ID>
Source§impl<'de, ID> Deserialize<'de> for ControlMessage<ID>where
ID: Deserialize<'de>,
impl<'de, ID> Deserialize<'de> for ControlMessage<ID>where
ID: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<ID> Display for ControlMessage<ID>
impl<ID> Display for ControlMessage<ID>
Source§impl<ID: PartialEq> PartialEq for ControlMessage<ID>
impl<ID: PartialEq> PartialEq for ControlMessage<ID>
Source§impl<ID> Serialize for ControlMessage<ID>where
ID: Serialize,
impl<ID> Serialize for ControlMessage<ID>where
ID: Serialize,
impl<ID: Eq> Eq for ControlMessage<ID>
impl<ID> StructuralPartialEq for ControlMessage<ID>
Auto Trait Implementations§
impl<ID> Freeze for ControlMessage<ID>where
ID: Freeze,
impl<ID> RefUnwindSafe for ControlMessage<ID>where
ID: RefUnwindSafe,
impl<ID> Send for ControlMessage<ID>where
ID: Send,
impl<ID> Sync for ControlMessage<ID>where
ID: Sync,
impl<ID> Unpin for ControlMessage<ID>where
ID: Unpin,
impl<ID> UnwindSafe for ControlMessage<ID>where
ID: UnwindSafe,
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