pub struct DecisionEvidenceReceipt { /* private fields */ }Expand description
A committed evidence batch and the snapshots needed by verification.
Implementations§
Source§impl DecisionEvidenceReceipt
impl DecisionEvidenceReceipt
Sourcepub fn case(&self) -> &VerificationCase
pub fn case(&self) -> &VerificationCase
Returns the verification case whose action produced the evidence.
Sourcepub fn stage(&self) -> DecisionExecutionStage
pub fn stage(&self) -> DecisionExecutionStage
Returns the verification stage collected by this execution.
Sourcepub fn executor_id(&self) -> &str
pub fn executor_id(&self) -> &str
Returns the resolved executor identity.
Sourcepub fn evidence(&self) -> &[Evidence]
pub fn evidence(&self) -> &[Evidence]
Returns the exact evidence batch emitted by this execution.
Sourcepub fn writes(&self) -> &[KnowledgeWrite]
pub fn writes(&self) -> &[KnowledgeWrite]
Returns one idempotent knowledge write result per emitted observation.
Sourcepub fn write_set(
&self,
) -> impl ExactSizeIterator<Item = (&Evidence, KnowledgeWrite)> + '_
pub fn write_set( &self, ) -> impl ExactSizeIterator<Item = (&Evidence, KnowledgeWrite)> + '_
Iterates over the exact evidence/write set committed by this execution.
The two values share one input-order position, so hosts do not need to reconstruct the atomic batch by indexing separate slices.
Sourcepub fn baseline(&self) -> Option<&KnowledgeSnapshot>
pub fn baseline(&self) -> Option<&KnowledgeSnapshot>
Returns the pre-probe snapshot for active verification.
Sourcepub fn after_execution(&self) -> &KnowledgeSnapshot
pub fn after_execution(&self) -> &KnowledgeSnapshot
Returns the subject snapshot after the evidence batch was committed.
Trait Implementations§
Source§impl Clone for DecisionEvidenceReceipt
impl Clone for DecisionEvidenceReceipt
Source§fn clone(&self) -> DecisionEvidenceReceipt
fn clone(&self) -> DecisionEvidenceReceipt
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 moreAuto Trait Implementations§
impl Freeze for DecisionEvidenceReceipt
impl RefUnwindSafe for DecisionEvidenceReceipt
impl Send for DecisionEvidenceReceipt
impl Sync for DecisionEvidenceReceipt
impl Unpin for DecisionEvidenceReceipt
impl UnsafeUnpin for DecisionEvidenceReceipt
impl UnwindSafe for DecisionEvidenceReceipt
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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