pub trait Executable: Send {
// Required method
fn execute(
self: Box<Self>,
context: Context<'_>,
) -> DbResult<ExecutableOutcome>;
}Expand description
Executable is a trait representing an object that can be executed within a
frame.
There are generally two ways to create an Executable:
- In a new frame, an
Executableis created by themake_executablefunction, which uses the frame’s input parameters (ActionParams) and local information (FrameLocal) to determine the appropriate executable action. - After the completion of a frame’s execution, an
Executablemay be created by the its caller frame’sResumer(implementing theResumabletrait) based on the execution results.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".