Trait common_meta::test_util::MockFlownodeHandler

source ·
pub trait MockFlownodeHandler: Sync + Send + Clone {
    // Provided methods
    fn handle<'life0, 'life1, 'async_trait>(
        &'life0 self,
        _peer: &'life1 Peer,
        _request: FlowRequest,
    ) -> Pin<Box<dyn Future<Output = Result<FlowResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn handle_inserts<'life0, 'life1, 'async_trait>(
        &'life0 self,
        _peer: &'life1 Peer,
        _requests: InsertRequests,
    ) -> Pin<Box<dyn Future<Output = Result<FlowResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}

Provided Methods§

source

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

source

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

Object Safety§

This trait is not object safe.

Implementors§