synapto-interface 0.1.0-dev.8

Interface definitions for the Synapto framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::plugin::Plugin;
use async_trait::async_trait;

#[async_trait]
pub trait GuiPlugin: Plugin + Send + Sync {
    async fn start(
        &self,
        registries: std::sync::Arc<crate::context::ContextRegistries>,
        error_rx: std::sync::mpsc::Receiver<String>,
    ) -> Result<(), String>;
}