common_meta::test_util

Trait 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,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§