Trait Node

Source
pub trait Node: Send + Sync {
    // Required methods
    fn new(
        inputs: Inputs,
        outputs: Outputs,
        queries: Queries,
        queryables: Queryables,
        configuration: Value,
    ) -> JoinHandle<Result<Box<dyn Node>>>
       where Self: Sized;
    fn start(self: Box<Self>) -> JoinHandle<Result<()>>;
}
Expand description

The Node trait defines the interface for all nodes in the iridis runtime.

Required Methods§

Source

fn new( inputs: Inputs, outputs: Outputs, queries: Queries, queryables: Queryables, configuration: Value, ) -> JoinHandle<Result<Box<dyn Node>>>
where Self: Sized,

The new function is used to create a new instance of the node.

Source

fn start(self: Box<Self>) -> JoinHandle<Result<()>>

The start function is used to start the node’s execution

Implementors§