myc-core 8.3.0+beta

Provide base features of the Mycelium project as s and Use-cases.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::{CallbackContext, CallbackError};

use async_trait::async_trait;
use shaku::Interface;

#[async_trait]
pub trait CallbackExecutor: Interface + Send + Sync {
    async fn execute(
        &self,
        context: &CallbackContext,
    ) -> Result<(), CallbackError>;

    fn name(&self) -> &str;
}