pub trait Worker {
    // Required methods
    fn upload_scenario(
        &self,
        client: WorkerToCoordinatorClient,
        name: String,
        content: Vec<u8>
    ) -> impl Future<Output = ()> + Send;
    fn ping(
        &self,
        client: WorkerToCoordinatorClient
    ) -> impl Future<Output = String> + Send;
    fn start(
        &self,
        client: WorkerToCoordinatorClient,
        name: String,
        config: Config,
        run_id: RunId
    ) -> impl Future<Output = Result<(), WorkerError>> + Send;
    fn get_data(
        &self,
        client: WorkerToCoordinatorClient
    ) -> impl Future<Output = WorkerData> + Send;
    fn get_run_status(
        &self,
        client: WorkerToCoordinatorClient,
        id: RunId
    ) -> impl Future<Output = RunInfo> + Send;
}

Required Methods§

source

fn upload_scenario( &self, client: WorkerToCoordinatorClient, name: String, content: Vec<u8> ) -> impl Future<Output = ()> + Send

source

fn ping( &self, client: WorkerToCoordinatorClient ) -> impl Future<Output = String> + Send

source

fn start( &self, client: WorkerToCoordinatorClient, name: String, config: Config, run_id: RunId ) -> impl Future<Output = Result<(), WorkerError>> + Send

source

fn get_data( &self, client: WorkerToCoordinatorClient ) -> impl Future<Output = WorkerData> + Send

source

fn get_run_status( &self, client: WorkerToCoordinatorClient, id: RunId ) -> impl Future<Output = RunInfo> + Send

Object Safety§

This trait is not object safe.

Implementors§