pub struct CauseCapsuleParts<'a> {
pub event_id: EventId,
pub parents: &'a [EventId],
pub relationship: RelationshipKind,
pub cause_kind: CauseKind,
pub action: OperationAction,
pub authority: Option<CapabilityRef>,
pub policy_epoch: Option<PolicyEpoch>,
}Expand description
Compact event capsule for causal parentage.
Fields§
§event_id: EventIdLocal event identifier.
parents: &'a [EventId]Parent event identifiers.
The compact capsule uses the same RelationshipKind for every
parent. Use separate capsules when parents need different relationship
meanings.
relationship: RelationshipKindRelationship used for every parent in this compact capsule.
cause_kind: CauseKindObservable cause class.
action: OperationActionRequested action.
Optional authority reference.
policy_epoch: Option<PolicyEpoch>Optional policy epoch reference.
Trait Implementations§
Source§impl<'a> Clone for CauseCapsuleParts<'a>
impl<'a> Clone for CauseCapsuleParts<'a>
Source§fn clone(&self) -> CauseCapsuleParts<'a>
fn clone(&self) -> CauseCapsuleParts<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for CauseCapsuleParts<'a>
Source§impl<'a> Debug for CauseCapsuleParts<'a>
impl<'a> Debug for CauseCapsuleParts<'a>
impl<'a> Eq for CauseCapsuleParts<'a>
Source§impl<'a> PartialEq for CauseCapsuleParts<'a>
impl<'a> PartialEq for CauseCapsuleParts<'a>
Source§fn eq(&self, other: &CauseCapsuleParts<'a>) -> bool
fn eq(&self, other: &CauseCapsuleParts<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for CauseCapsuleParts<'a>
Auto Trait Implementations§
impl<'a> Freeze for CauseCapsuleParts<'a>
impl<'a> RefUnwindSafe for CauseCapsuleParts<'a>
impl<'a> Send for CauseCapsuleParts<'a>
impl<'a> Sync for CauseCapsuleParts<'a>
impl<'a> Unpin for CauseCapsuleParts<'a>
impl<'a> UnsafeUnpin for CauseCapsuleParts<'a>
impl<'a> UnwindSafe for CauseCapsuleParts<'a>
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