asimov_patterns/execute.rs
1// This is free and unencumbered software released into the public domain.
2
3use alloc::boxed::Box;
4use async_trait::async_trait;
5use core::result::Result;
6
7/// Asynchronous execution with error handling.
8#[async_trait]
9pub trait Execute<T, E> {
10 async fn execute(&mut self) -> Result<T, E>;
11}