Trait common_meta::node_manager::Flownode

source ·
pub trait Flownode: Send + Sync {
    // Required methods
    fn handle<'life0, 'async_trait>(
        &'life0 self,
        request: FlowRequest,
    ) -> Pin<Box<dyn Future<Output = Result<FlowResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn handle_inserts<'life0, 'async_trait>(
        &'life0 self,
        request: InsertRequests,
    ) -> Pin<Box<dyn Future<Output = Result<FlowResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

The trait for handling requests to flownode

Required Methods§

source

fn handle<'life0, 'async_trait>( &'life0 self, request: FlowRequest, ) -> Pin<Box<dyn Future<Output = Result<FlowResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn handle_inserts<'life0, 'async_trait>( &'life0 self, request: InsertRequests, ) -> Pin<Box<dyn Future<Output = Result<FlowResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§