net_component/component/
component_core.rs

1use std::error::Error;
2
3#[async_trait::async_trait]
4pub trait Component: Send + Sync {
5    async fn run(&self) -> Result<(), Box<dyn Error + Send + Sync>>;
6}