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:

  1. In a new frame, an Executable is created by the make_executable function, which uses the frame’s input parameters (ActionParams) and local information (FrameLocal) to determine the appropriate executable action.
  2. After the completion of a frame’s execution, an Executable may be created by the its caller frame’s Resumer (implementing the Resumable trait) based on the execution results.

Required Methods§

source

fn execute(self: Box<Self>, context: Context<'_>) -> DbResult<ExecutableOutcome>

Implementations on Foreign Types§

source§

impl Executable for Box<dyn Exec>

source§

fn execute(self: Box<Self>, context: Context<'_>) -> DbResult<ExecutableOutcome>

Implementors§