pub enum ScriptedOutcome {
Terminal(ActionOutcome),
TransportLostAfterDispatch,
TransportLostBeforeDispatch,
}Expand description
One scripted execute behavior (crate::spi::ProviderSession::execute),
consumed front-to-back
from the script queue.
Variants§
Terminal(ActionOutcome)
Return this terminal outcome. The journal records the dispatch and
archives the terminal. For succeeded, the fake stamps
result.callId and the timestamps from its logical clock so the
post-condition result.callId == call.callId holds regardless of
what the script author wrote.
TransportLostAfterDispatch
Simulate transport rupture after dispatch reached the daemon but
before any terminal arrived: the journal records a dispatch with no
terminal (reconcile → startedNoTerminal) and execute fails with
a transport_lost-class ProviderError.
TransportLostBeforeDispatch
Simulate transport rupture before dispatch reached the daemon: no
journal trace (reconcile → neverDispatched) and execute fails
with a transport_lost-class ProviderError.
Implementations§
Trait Implementations§
Source§impl Clone for ScriptedOutcome
impl Clone for ScriptedOutcome
Source§fn clone(&self) -> ScriptedOutcome
fn clone(&self) -> ScriptedOutcome
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more