pub trait ActionExecutor: Send + Sync {
// Required method
fn execute<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
spec: &'life1 LoopSpec,
action: &'life2 ProposedAction,
world: &'life3 mut World,
) -> Pin<Box<dyn Future<Output = Result<ActionReceipt, ActionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
}Expand description
Carries out a verified, auto-approved action.
Gates decide whether a proposal is allowed. Executors do the side effect: create a PR, commit a worktree, post a comment, apply a patch, or hand the proposal to any project-specific system. The engine ships conservative defaults; production loops should install an executor that matches their action kinds.
Required Methods§
fn execute<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
spec: &'life1 LoopSpec,
action: &'life2 ProposedAction,
world: &'life3 mut World,
) -> Pin<Box<dyn Future<Output = Result<ActionReceipt, ActionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".