pub struct CauseCapsule<'a> { /* private fields */ }Expand description
Validated compact event capsule for causal parentage.
Implementations§
Source§impl<'a> CauseCapsule<'a>
impl<'a> CauseCapsule<'a>
Sourcepub const fn new(
parts: CauseCapsuleParts<'a>,
limits: WireLimits,
) -> Result<Self, ValidationError>
pub const fn new( parts: CauseCapsuleParts<'a>, limits: WireLimits, ) -> Result<Self, ValidationError>
Creates a validated compact cause capsule.
Sourcepub const fn validate(&self, limits: WireLimits) -> Result<(), ValidationError>
pub const fn validate(&self, limits: WireLimits) -> Result<(), ValidationError>
Validates bounded capsule shape.
Sourcepub const fn relationship(&self) -> RelationshipKind
pub const fn relationship(&self) -> RelationshipKind
Returns the relationship used for each parent.
Sourcepub const fn cause_kind(&self) -> CauseKind
pub const fn cause_kind(&self) -> CauseKind
Returns the observable cause class.
Sourcepub const fn action(&self) -> OperationAction
pub const fn action(&self) -> OperationAction
Returns the requested action.
Returns the optional authority reference.
Sourcepub const fn policy_epoch(&self) -> Option<PolicyEpoch>
pub const fn policy_epoch(&self) -> Option<PolicyEpoch>
Returns the optional policy epoch reference.
Trait Implementations§
Source§impl<'a> Clone for CauseCapsule<'a>
impl<'a> Clone for CauseCapsule<'a>
Source§fn clone(&self) -> CauseCapsule<'a>
fn clone(&self) -> CauseCapsule<'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 CauseCapsule<'a>
Source§impl<'a> Debug for CauseCapsule<'a>
impl<'a> Debug for CauseCapsule<'a>
impl<'a> Eq for CauseCapsule<'a>
Source§impl<'a> PartialEq for CauseCapsule<'a>
impl<'a> PartialEq for CauseCapsule<'a>
Source§fn eq(&self, other: &CauseCapsule<'a>) -> bool
fn eq(&self, other: &CauseCapsule<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for CauseCapsule<'a>
Auto Trait Implementations§
impl<'a> Freeze for CauseCapsule<'a>
impl<'a> RefUnwindSafe for CauseCapsule<'a>
impl<'a> Send for CauseCapsule<'a>
impl<'a> Sync for CauseCapsule<'a>
impl<'a> Unpin for CauseCapsule<'a>
impl<'a> UnsafeUnpin for CauseCapsule<'a>
impl<'a> UnwindSafe for CauseCapsule<'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