#[non_exhaustive]pub enum AcceptOutcome {
Accepted {
input_id: InputId,
policy: PolicyDecision,
state: InputState,
seed: InputStateSeed,
},
Deduplicated {
input_id: InputId,
existing_id: InputId,
existing_seed: InputStateSeed,
},
Rejected {
reason: RejectReason,
},
}Expand description
Outcome of RuntimeDriver::accept_input().
Domain envelope returned to in-process callers. Surface crates translate it
into the wire shape (RuntimeAcceptResult in meerkat-contracts) before
emitting it on the network, so this type intentionally has no
Serialize/Deserialize derives.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Accepted
Input was accepted and processing has begun.
Fields
policy: PolicyDecisionThe policy decision applied to this input.
state: InputStateCurrent input state.
seed: InputStateSeedMachine-owned lifecycle seed paired with state.
Deduplicated
Input was deduplicated (idempotency key matched an existing input).
Fields
existing_seed: InputStateSeedExact machine/store-owned lifecycle seed for the matched input.
Persistent runtimes may already have archived the terminal input from live machine state, so consumers must classify this retained receipt instead of re-reading a live row after admission.
Rejected
Input was rejected (validation failed, durability violation, etc.).
Fields
reason: RejectReasonWhy the input was rejected.
Implementations§
Source§impl AcceptOutcome
impl AcceptOutcome
Sourcepub fn is_accepted(&self) -> bool
pub fn is_accepted(&self) -> bool
Check if the input was accepted.
Sourcepub fn is_deduplicated(&self) -> bool
pub fn is_deduplicated(&self) -> bool
Check if the input was deduplicated.
Sourcepub fn is_rejected(&self) -> bool
pub fn is_rejected(&self) -> bool
Check if the input was rejected.
Trait Implementations§
Source§impl Clone for AcceptOutcome
impl Clone for AcceptOutcome
Source§fn clone(&self) -> AcceptOutcome
fn clone(&self) -> AcceptOutcome
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more