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,
},
}Available on crate features
message_scheme only.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<'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>
impl<ID: Eq, OP: Eq> Eq for ControlMessage<ID, OP>
Source§impl<ID, OP> Serialize for ControlMessage<ID, OP>
impl<ID, OP> Serialize for ControlMessage<ID, OP>
impl<ID: PartialEq, OP: PartialEq> StructuralPartialEq for ControlMessage<ID, OP>
Auto Trait Implementations§
impl<ID, OP> Freeze for ControlMessage<ID, OP>
impl<ID, OP> RefUnwindSafe for ControlMessage<ID, OP>
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> UnsafeUnpin for ControlMessage<ID, OP>
impl<ID, OP> UnwindSafe for ControlMessage<ID, OP>
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