pub struct GroupControlMessage<ID, C> {
pub group_id: ID,
pub action: GroupAction<ID, C>,
}Expand description
Control messages which are processed in order to update group state.
There are two variants, one containing a group action and the ID of the group to which the action should be applied. The other is a special message which can be used to “undo” a message which has been previously applied to the group.
Fields§
§group_id: ID§action: GroupAction<ID, C>Implementations§
Trait Implementations§
Source§impl<ID: Clone, C: Clone> Clone for GroupControlMessage<ID, C>
impl<ID: Clone, C: Clone> Clone for GroupControlMessage<ID, C>
Source§fn clone(&self) -> GroupControlMessage<ID, C>
fn clone(&self) -> GroupControlMessage<ID, C>
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, C> Deserialize<'de> for GroupControlMessage<ID, C>where
ID: Deserialize<'de>,
C: Deserialize<'de>,
impl<'de, ID, C> Deserialize<'de> for GroupControlMessage<ID, C>where
ID: Deserialize<'de>,
C: 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 Operation<char, u32, GroupControlMessage<char, ()>> for TestOperation
impl Operation<char, u32, GroupControlMessage<char, ()>> for TestOperation
Source§impl Orderer<char, u32, GroupControlMessage<char, ()>> for TestOrderer
impl Orderer<char, u32, GroupControlMessage<char, ()>> for TestOrderer
type State = ()
type Operation = TestOperation
type Error = Infallible
Source§fn next_message(
_y: Self::State,
_payload: &GroupControlMessage<MemberId, Conditions>,
) -> Result<(Self::State, Self::Operation), Self::Error>
fn next_message( _y: Self::State, _payload: &GroupControlMessage<MemberId, Conditions>, ) -> Result<(Self::State, Self::Operation), Self::Error>
Create a next message with generic payload based on current local state, relevant
meta-data is attached to the message.
Source§impl Orderer<char, u32, GroupControlMessage<char, ()>> for TestOrderer
impl Orderer<char, u32, GroupControlMessage<char, ()>> for TestOrderer
Source§fn next_message(
y: Self::State,
control_message: &GroupControlMessage<MemberId, Conditions>,
) -> Result<(Self::State, Self::Operation), Self::Error>
fn next_message( y: Self::State, control_message: &GroupControlMessage<MemberId, Conditions>, ) -> Result<(Self::State, Self::Operation), Self::Error>
Construct the next operation which should include meta-data required for establishing order between different operations.
In this implementation causal order is established between operations using a graph structure. Every operation contains a pointer to both the previous operations in a single auth group graph, and also the tips of any sub-group graphs.
type State = TestOrdererState
type Error = OrdererError
type Operation = TestOperation
Source§impl<ID, C> Serialize for GroupControlMessage<ID, C>
impl<ID, C> Serialize for GroupControlMessage<ID, C>
impl<ID: Eq, C: Eq> Eq for GroupControlMessage<ID, C>
impl<ID, C> StructuralPartialEq for GroupControlMessage<ID, C>
Auto Trait Implementations§
impl<ID, C> Freeze for GroupControlMessage<ID, C>
impl<ID, C> RefUnwindSafe for GroupControlMessage<ID, C>where
ID: RefUnwindSafe,
C: RefUnwindSafe,
impl<ID, C> Send for GroupControlMessage<ID, C>
impl<ID, C> Sync for GroupControlMessage<ID, C>
impl<ID, C> Unpin for GroupControlMessage<ID, C>
impl<ID, C> UnwindSafe for GroupControlMessage<ID, C>where
ID: UnwindSafe,
C: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.