Skip to main content

Source

Trait Source 

Source
pub trait Source {
    // Required methods
    fn table_schema(&self) -> &Table;
    fn connect(
        &self,
        sort: Option<Vec<OrderPart>>,
        filters: Option<&Condition>,
        split_edit_keys: Option<&HashSet<String>>,
    ) -> Result<Rc<dyn SourceInput>, PipelineError>;
    fn push(&self, change: SourceChange);
}
Expand description

A source of rows for pipelines (Source in source.ts).

Required Methods§

Source

fn table_schema(&self) -> &Table

Source

fn connect( &self, sort: Option<Vec<OrderPart>>, filters: Option<&Condition>, split_edit_keys: Option<&HashSet<String>>, ) -> Result<Rc<dyn SourceInput>, PipelineError>

Connects a pipeline. sort is None for an unordered connection.

Source

fn push(&self, change: SourceChange)

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§