pub trait Global<State: Clone, CState: Clone>: Send + Sync + 'static {
    // Required method
    fn call<'life0, 'async_trait>(
        &'life0 self,
        state: State,
        session_list: SessionList<CState>
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn call<'life0, 'async_trait>( &'life0 self, state: State, session_list: SessionList<CState> ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§

source§

impl<State, CState, F, Fut> Global<State, CState> for F
where State: Clone + Send + Sync + 'static, CState: Clone + Send + Sync + 'static, F: Send + Sync + 'static + Fn(State, SessionList<CState>) -> Fut, Fut: Future<Output = Result<(), Error>> + Send + 'static,