pub enum ScenarioBoundary {
BeforeOperation,
AfterDurableCommit,
BeforeResponse,
DuringResponse,
Timeout,
Cancellation,
DroppedConnection,
Cleanup,
ResourceAcquire,
}Expand description
A small, target-neutral vocabulary for normal scenario fault boundaries.
Callers can still use a project-specific bounded label through
FaultInjector::inject, but this type covers the lifecycle boundaries
that every deterministic scenario should name consistently.
Variants§
BeforeOperation
Immediately before the business operation starts.
AfterDurableCommit
Immediately after a durable mutation commits.
BeforeResponse
Immediately before the response is projected to the caller.
DuringResponse
While a streaming response is in progress.
Timeout
At the scenario deadline boundary.
Cancellation
At cooperative cancellation.
DroppedConnection
When a client connection drops.
Cleanup
When generation-owned cleanup runs.
ResourceAcquire
When a required resource is acquired.
Trait Implementations§
Source§impl Clone for ScenarioBoundary
impl Clone for ScenarioBoundary
impl Copy for ScenarioBoundary
Source§impl Debug for ScenarioBoundary
impl Debug for ScenarioBoundary
impl Eq for ScenarioBoundary
Source§impl PartialEq for ScenarioBoundary
impl PartialEq for ScenarioBoundary
impl StructuralPartialEq for ScenarioBoundary
Auto Trait Implementations§
impl Freeze for ScenarioBoundary
impl RefUnwindSafe for ScenarioBoundary
impl Send for ScenarioBoundary
impl Sync for ScenarioBoundary
impl Unpin for ScenarioBoundary
impl UnsafeUnpin for ScenarioBoundary
impl UnwindSafe for ScenarioBoundary
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.