pub enum ControlMessage<ID, OP> {
Create {
initial_members: Vec<ID>,
},
Ack {
ack_sender: ID,
ack_seq: OP,
},
Update,
Remove {
removed: ID,
},
Add {
added: ID,
},
AddAck {
ack_sender: ID,
ack_seq: OP,
},
}
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, OP: Clone> Clone for ControlMessage<ID, OP>
impl<ID: Clone, OP: Clone> Clone for ControlMessage<ID, OP>
Source§fn clone(&self) -> ControlMessage<ID, OP>
fn clone(&self) -> ControlMessage<ID, OP>
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<'de, ID, OP> Deserialize<'de> for ControlMessage<ID, OP>where
ID: Deserialize<'de>,
OP: Deserialize<'de>,
impl<'de, ID, OP> Deserialize<'de> for ControlMessage<ID, OP>where
ID: Deserialize<'de>,
OP: 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, OP> Display for ControlMessage<ID, OP>
impl<ID, OP> Display for ControlMessage<ID, OP>
Source§impl<ID, OP> Serialize for ControlMessage<ID, OP>
impl<ID, OP> Serialize for ControlMessage<ID, OP>
impl<ID: Eq, OP: Eq> Eq for ControlMessage<ID, OP>
impl<ID, OP> StructuralPartialEq for ControlMessage<ID, OP>
Auto Trait Implementations§
impl<ID, OP> Freeze for ControlMessage<ID, OP>
impl<ID, OP> RefUnwindSafe for ControlMessage<ID, OP>where
ID: RefUnwindSafe,
OP: RefUnwindSafe,
impl<ID, OP> Send for ControlMessage<ID, OP>
impl<ID, OP> Sync for ControlMessage<ID, OP>
impl<ID, OP> Unpin for ControlMessage<ID, OP>
impl<ID, OP> UnwindSafe for ControlMessage<ID, OP>where
ID: UnwindSafe,
OP: 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