[][src]Trait stratum_types::traits::AuthManager

pub trait AuthManager: Sync + Send + Clone {
    type Authorize: DeserializeOwned + Serialize + Sync + Send + Clone + Debug;
    type Authorized: DeserializeOwned + Serialize + Sync + Send + Clone + Debug;
    type Subscribe: DeserializeOwned + Serialize + Sync + Send + Clone + Debug;
    type SubscribeResult: SubscribeResult;
    fn init<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn authorize<'life0, 'life1, 'async_trait>(
        &'life0 self,
        info: Arc<MinerInfo>,
        auth: &'life1 Self::Authorize
    ) -> Pin<Box<dyn Future<Output = Result<Self::Authorized>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn subscribe<'life0, 'life1, 'async_trait>(
        &'life0 self,
        info: Arc<MinerInfo>,
        subscribe_info: &'life1 Self::Subscribe
    ) -> Pin<Box<dyn Future<Output = Result<Self::SubscribeResult>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }

Associated Types

Loading content...

Required methods

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

fn authorize<'life0, 'life1, 'async_trait>(
    &'life0 self,
    info: Arc<MinerInfo>,
    auth: &'life1 Self::Authorize
) -> Pin<Box<dyn Future<Output = Result<Self::Authorized>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

fn subscribe<'life0, 'life1, 'async_trait>(
    &'life0 self,
    info: Arc<MinerInfo>,
    subscribe_info: &'life1 Self::Subscribe
) -> Pin<Box<dyn Future<Output = Result<Self::SubscribeResult>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

Loading content...

Implementors

Loading content...