pub enum ExecutionStepInput {
Initial,
Resume(Value),
Signal {
name: String,
value: Value,
},
}Expand description
Explicit input for one execution step.
All inputs to a step are declared here so the boundary is pure and replayable.
Variants§
Initial
Initial step (no prior resume or signal).
Resume(Value)
Resuming after an interrupt; payload is the resolved value.
Signal
External signal (e.g. named channel).
Implementations§
Source§impl ExecutionStepInput
impl ExecutionStepInput
Sourcepub fn validate(&self) -> Result<(), KernelError>
pub fn validate(&self) -> Result<(), KernelError>
Validates that the input is well-formed (e.g. Resume has a value).
Trait Implementations§
Source§impl Clone for ExecutionStepInput
impl Clone for ExecutionStepInput
Source§fn clone(&self) -> ExecutionStepInput
fn clone(&self) -> ExecutionStepInput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExecutionStepInput
impl Debug for ExecutionStepInput
Source§impl<'de> Deserialize<'de> for ExecutionStepInput
impl<'de> Deserialize<'de> for ExecutionStepInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ExecutionStepInput
impl RefUnwindSafe for ExecutionStepInput
impl Send for ExecutionStepInput
impl Sync for ExecutionStepInput
impl Unpin for ExecutionStepInput
impl UnsafeUnpin for ExecutionStepInput
impl UnwindSafe for ExecutionStepInput
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