asimov_patterns/
execute.rs

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