pub struct ApprovalOnlyExecutor;Expand description
Default executor: records that a gate approved the action but performs no
external side effect. This keeps LoopEngine::new safe while making the
missing production handoff visible in the round report.
Trait Implementations§
Source§impl ActionExecutor for ApprovalOnlyExecutor
impl ActionExecutor for ApprovalOnlyExecutor
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,
Auto Trait Implementations§
impl Freeze for ApprovalOnlyExecutor
impl RefUnwindSafe for ApprovalOnlyExecutor
impl Send for ApprovalOnlyExecutor
impl Sync for ApprovalOnlyExecutor
impl Unpin for ApprovalOnlyExecutor
impl UnsafeUnpin for ApprovalOnlyExecutor
impl UnwindSafe for ApprovalOnlyExecutor
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