pub enum LeafwardsMessage {
ChildAuthOutcome {
child_participant_id: ParticipantId,
version: u32,
ok: bool,
message: Option<String>,
},
UnauthenticatedResponse {},
RequestForMutatorAnnouncements {},
NewMutation {
mutator_id: MutatorId,
mutation_id: MutationId,
maybe_trigger_mask: Option<TriggerCRDT>,
params: AttrKvs,
},
ClearSingleMutation {
mutator_id: MutatorId,
mutation_id: MutationId,
reset_if_active: bool,
},
ClearMutationsForMutator {
mutator_id: MutatorId,
reset_if_active: bool,
},
ClearMutations {},
UpdateTriggerState {
mutator_id: MutatorId,
mutation_id: MutationId,
maybe_trigger_crdt: Option<TriggerCRDT>,
},
}
Variants§
ChildAuthOutcome
Fields
§
child_participant_id: ParticipantId
Id of the child (or further descendant) that requested authorization
UnauthenticatedResponse
RequestForMutatorAnnouncements
NewMutation
Fields
§
mutation_id: MutationId
§
maybe_trigger_mask: Option<TriggerCRDT>
If Some, the mutation should not be actuated immediately, and instead should only be actuated when accumulated TriggerCRDT state (as updated by UpdateTriggerState messages) matches this value. If None, actuate the mutation immediately.
ClearSingleMutation
ClearMutationsForMutator
ClearMutations
UpdateTriggerState
Fields
§
mutation_id: MutationId
§
maybe_trigger_crdt: Option<TriggerCRDT>
Interpret “None” as “clear your trigger state for this mutation, you don’t need to track it (anymore)”
Implementations§
Trait Implementations§
Source§impl Clone for LeafwardsMessage
impl Clone for LeafwardsMessage
Source§fn clone(&self) -> LeafwardsMessage
fn clone(&self) -> LeafwardsMessage
Returns a copy 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 Debug for LeafwardsMessage
impl Debug for LeafwardsMessage
Source§impl<'bytes> Decode<'bytes> for LeafwardsMessage
impl<'bytes> Decode<'bytes> for LeafwardsMessage
Source§impl Encode for LeafwardsMessage
impl Encode for LeafwardsMessage
Source§impl PartialEq for LeafwardsMessage
impl PartialEq for LeafwardsMessage
impl StructuralPartialEq for LeafwardsMessage
Auto Trait Implementations§
impl Freeze for LeafwardsMessage
impl RefUnwindSafe for LeafwardsMessage
impl Send for LeafwardsMessage
impl Sync for LeafwardsMessage
impl Unpin for LeafwardsMessage
impl UnwindSafe for LeafwardsMessage
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