Skip to main content

ExchangeSource

Trait ExchangeSource 

Source
pub trait ExchangeSource: Send + Debug {
    // Required methods
    fn take_data(
        &mut self,
    ) -> impl Future<Output = Result<Option<DataChunk>>> + '_;
    fn get_task_id(&self) -> TaskId;
}
Expand description

Each ExchangeSource maps to one task, it takes the execution result from task chunk by chunk.

Required Methods§

Source

fn take_data(&mut self) -> impl Future<Output = Result<Option<DataChunk>>> + '_

Source

fn get_task_id(&self) -> TaskId

Get upstream task id.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§