pub enum ControlMessage<ID> {
Create {
initial_members: Vec<ID>,
},
Update,
Remove {
removed: ID,
},
Add {
added: ID,
},
}Available on crate features
data_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<ID: Clone> Clone for ControlMessage<ID>
impl<ID: Clone> Clone for ControlMessage<ID>
Source§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>
impl<ID: Eq> Eq 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: PartialEq> StructuralPartialEq for ControlMessage<ID>
Auto Trait Implementations§
impl<ID> Freeze for ControlMessage<ID>
impl<ID> RefUnwindSafe for ControlMessage<ID>
impl<ID> Send for ControlMessage<ID>
impl<ID> Sync for ControlMessage<ID>
impl<ID> Unpin for ControlMessage<ID>
impl<ID> UnsafeUnpin for ControlMessage<ID>
impl<ID> UnwindSafe for ControlMessage<ID>
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