[][src]Trait stratum_server::Global

pub trait Global<State: Clone + Send + Sync + 'static, CState: Clone + Send + Sync + 'static>: Send + Sync + 'static {
#[must_use]    fn call<'life0, 'async_trait>(
        &'life0 self,
        state: State,
        connection_list: Arc<MinerList<CState>>
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Required methods

#[must_use]fn call<'life0, 'async_trait>(
    &'life0 self,
    state: State,
    connection_list: Arc<MinerList<CState>>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

Loading content...

Implementors

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, Arc<MinerList<CState>>) -> Fut,
    Fut: Future<Output = ()> + Send + 'static, 
[src]

Loading content...