Trait DistNetwork
Source pub trait DistNetwork:
Debug
+ Send
+ Sync {
// Required methods
fn local_node(&self) -> NodeId;
fn send_tasks<'life0, 'async_trait>(
&'life0 self,
node_id: NodeId,
scheduled_tasks: ScheduledTasks,
) -> Pin<Box<dyn Future<Output = DistResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn execute_task<'life0, 'async_trait>(
&'life0 self,
node_id: NodeId,
task_id: TaskId,
) -> Pin<Box<dyn Future<Output = DistResult<RecordBatchStream>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_job_status<'life0, 'async_trait>(
&'life0 self,
node_id: NodeId,
job_id: Option<Uuid>,
) -> Pin<Box<dyn Future<Output = DistResult<HashMap<StageId, StageInfo>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn cleanup_job<'life0, 'async_trait>(
&'life0 self,
node_id: NodeId,
job_id: Uuid,
) -> Pin<Box<dyn Future<Output = DistResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}