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<SendableRecordBatchStream>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_jobs<'life0, 'async_trait>(
&'life0 self,
node_id: NodeId,
job_ids: Option<Vec<JobId>>,
) -> Pin<Box<dyn Future<Output = DistResult<HashMap<StageId, StageInfo>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn cleanup_jobs<'life0, 'async_trait>(
&'life0 self,
node_id: NodeId,
job_ids: Vec<JobId>,
) -> Pin<Box<dyn Future<Output = DistResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}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<SendableRecordBatchStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_jobs<'life0, 'async_trait>(
&'life0 self,
node_id: NodeId,
job_ids: Option<Vec<JobId>>,
) -> Pin<Box<dyn Future<Output = DistResult<HashMap<StageId, StageInfo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn cleanup_jobs<'life0, 'async_trait>(
&'life0 self,
node_id: NodeId,
job_ids: Vec<JobId>,
) -> Pin<Box<dyn Future<Output = DistResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".