hopr_lib

Trait HoprSessionReactor

Source
pub trait HoprSessionReactor {
    // Required method
    fn process<'life0, 'async_trait>(
        &'life0 self,
        session: HoprIncomingSession,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Interface representing the HOPR server behavior for each incoming session instance supplied as an argument.

Required Methods§

Source

fn process<'life0, 'async_trait>( &'life0 self, session: HoprIncomingSession, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Fully process a single HOPR session

Implementors§