Skip to main content

ReplayEvidence

Struct ReplayEvidence 

Source
pub struct ReplayEvidence<'a> { /* private fields */ }
Expand description

Independent evidence needed to rebuild a replay identity. None of these values are accepted from the serialized replay envelope itself.

Implementations§

Source§

impl<'a> ReplayEvidence<'a>

Source

pub fn new( resolved_plan: &'a ResolvedModelPlan, request_input: &'a [u8], initial_state: &'a [u8], random_seed: u64, request_journal: &'a [ExecutionEvent], active_binding: &'a TrustedActiveSequenceBinding, completed_binding: Option<&'a TrustedCompletedSequenceBinding>, aborted_binding: Option<&'a TrustedAbortedSequenceBinding>, cleanup_requirement: ReplayCleanupRequirement, plan_cleanup: ReplayPlanCleanupEvidence<'a>, operation_completions: &'a [OperationCompletionReceipt], operation_drains: &'a [CompletionDrainReceipt], operation_quarantines: &'a [CompletionQuarantineReceipt], pool_evidence: &'a ResourcePoolEvidence, pool_journal: &'a [ResourcePoolEvent], ) -> Self

Source

pub fn new_no_static( resolved_plan: &'a ResolvedModelPlan, request_input: &'a [u8], initial_state: &'a [u8], random_seed: u64, request_journal: &'a [ExecutionEvent], active_binding: &'a TrustedActiveSequenceBinding, completed_binding: Option<&'a TrustedCompletedSequenceBinding>, aborted_binding: Option<&'a TrustedAbortedSequenceBinding>, cleanup_requirement: ReplayCleanupRequirement, plan_cleanup: ReplayPlanCleanupEvidence<'a>, operation_completions: &'a [OperationCompletionReceipt], operation_drains: &'a [CompletionDrainReceipt], operation_quarantines: &'a [CompletionQuarantineReceipt], ) -> Self

Source

pub fn resolved_plan(&self) -> &ResolvedModelPlan

Source

pub fn request_input(&self) -> &[u8]

Source

pub fn initial_state(&self) -> &[u8]

Source

pub const fn random_seed(&self) -> u64

Source

pub fn request_journal(&self) -> &[ExecutionEvent]

Source

pub fn active_binding(&self) -> &TrustedActiveSequenceBinding

Source

pub fn completed_binding(&self) -> Option<&TrustedCompletedSequenceBinding>

Source

pub fn aborted_binding(&self) -> Option<&TrustedAbortedSequenceBinding>

Source

pub const fn cleanup_requirement(&self) -> ReplayCleanupRequirement

Source

pub const fn plan_cleanup(&self) -> ReplayPlanCleanupEvidence<'a>

Source

pub fn operation_completions(&self) -> &[OperationCompletionReceipt]

Source

pub fn operation_drains(&self) -> &[CompletionDrainReceipt]

Source

pub fn operation_quarantines(&self) -> &[CompletionQuarantineReceipt]

Source

pub fn pool_evidence(&self) -> Option<&ResourcePoolEvidence>

Source

pub fn pool_journal(&self) -> &[ResourcePoolEvent]

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for ReplayEvidence<'a>

§

impl<'a> !UnwindSafe for ReplayEvidence<'a>

§

impl<'a> Freeze for ReplayEvidence<'a>

§

impl<'a> Send for ReplayEvidence<'a>

§

impl<'a> Sync for ReplayEvidence<'a>

§

impl<'a> Unpin for ReplayEvidence<'a>

§

impl<'a> UnsafeUnpin for ReplayEvidence<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V