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 Operation<char, u32, GroupControlMessage<char, ()>> for TestOperation
impl Operation<char, u32, GroupControlMessage<char, ()>> for TestOperation
ID of the author of this operation.
Source§fn dependencies(&self) -> Vec<u32>
fn dependencies(&self) -> Vec<u32>
Other operation dependencies.
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
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