asimov-patterns 25.2.0

ASIMOV Software Development Kit (SDK) for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
// This is free and unencumbered software released into the public domain.

use alloc::boxed::Box;
use async_trait::async_trait;
use core::result::Result;

/// Asynchronous execution with error handling.
#[async_trait]
pub trait Execute<T, E> {
    async fn execute(&mut self) -> Result<T, E>;
}