pub trait ExecutableSyncSignal<S>: WorkflowImplementationwhere
S: SignalDefinition,{
// Required method
fn handle(
&mut self,
ctx: &mut SyncWorkflowContext<Self>,
input: <S as SignalDefinition>::Input,
);
// Provided method
fn dispatch(
ctx: WorkflowContext<Self>,
input: Box<dyn Any>,
) -> Pin<Box<dyn Future<Output = Result<(), WorkflowError>>>> { ... }
}Expand description
Trait for executing synchronous signal handlers on a workflow.
Required Methods§
Sourcefn handle(
&mut self,
ctx: &mut SyncWorkflowContext<Self>,
input: <S as SignalDefinition>::Input,
)
fn handle( &mut self, ctx: &mut SyncWorkflowContext<Self>, input: <S as SignalDefinition>::Input, )
Handle an incoming signal with the given input.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".