pub struct CrashHarness { /* private fields */ }Expand description
Live ReceiptTable plus a parallel Copy log used to restore after a crash.
Implementations§
Source§impl CrashHarness
impl CrashHarness
Sourcepub fn inject_crash_after(&mut self, boundary: CrashBoundary)
pub fn inject_crash_after(&mut self, boundary: CrashBoundary)
Snapshot after the next successful transition past boundary.
Sourcepub fn occupied_count(&self) -> usize
pub fn occupied_count(&self) -> usize
Occupied log slots.
Sourcepub fn identity_present(&self, id: StrongDigest) -> bool
pub fn identity_present(&self, id: StrongDigest) -> bool
true when identity id is bound in the log.
Sourcepub fn effect_present(&self, id: StrongDigest) -> bool
pub fn effect_present(&self, id: StrongDigest) -> bool
true when effect id is recorded.
Sourcepub fn durable_present(&self, id: StrongDigest) -> bool
pub fn durable_present(&self, id: StrongDigest) -> bool
true when id is marked durable.
Sourcepub fn apply_count(&self, id: StrongDigest) -> u8
pub fn apply_count(&self, id: StrongDigest) -> u8
Number of recorded applications of id (u8 saturating).
Sourcepub fn bind_identity(&mut self, id: StrongDigest) -> Result<(), QdnfError>
pub fn bind_identity(&mut self, id: StrongDigest) -> Result<(), QdnfError>
Binds id as an identity in the crash log; QdnfError on failure.
Sourcepub fn apply_effect(&mut self, id: StrongDigest) -> Result<(), QdnfError>
pub fn apply_effect(&mut self, id: StrongDigest) -> Result<(), QdnfError>
Records application of effect id.
Sourcepub fn acknowledge(
&mut self,
id: StrongDigest,
stage: DeliveryStage,
) -> Result<ReceiptClass, QdnfError>
pub fn acknowledge( &mut self, id: StrongDigest, stage: DeliveryStage, ) -> Result<ReceiptClass, QdnfError>
Acknowledges id — marks it durably received.
Sourcepub fn advertised_durability(
&mut self,
id: StrongDigest,
stage: DeliveryStage,
) -> Result<ReceiptClass, QdnfError>
pub fn advertised_durability( &mut self, id: StrongDigest, stage: DeliveryStage, ) -> Result<ReceiptClass, QdnfError>
The durability level advertised for id.
Auto Trait Implementations§
impl Freeze for CrashHarness
impl RefUnwindSafe for CrashHarness
impl Send for CrashHarness
impl Sync for CrashHarness
impl Unpin for CrashHarness
impl UnsafeUnpin for CrashHarness
impl UnwindSafe for CrashHarness
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more