1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![no_std]

extern crate alloc;

#[allow(unused_imports)]
use alloc::boxed::Box;

use cgp_async::{async_trait, Async};
use cgp_component::{derive_component, DelegateComponent, HasComponents};
use cgp_error::HasErrorType;

#[derive_component(RunnerComponent, Runner<Context>)]
#[async_trait]
pub trait CanRun: Async + HasErrorType {
    async fn run(&self) -> Result<(), Self::Error>;
}