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

pub trait AuthManager: Sync + Send + Clone {
    type Authorize: Authorize;
    type AuthorizeResult: AuthorizeResult;
    type Subscribe: Subscribe;
    type SubscribeResult: SubscribeResult;
#[must_use]    fn authorize<'life0, 'life1, 'async_trait>(
        &'life0 self,
        info: MinerInfo,
        auth: &'life1 Self::Authorize,
        classic: bool
    ) -> Pin<Box<dyn Future<Output = Result<Self::AuthorizeResult, StratumError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn authorize_username<'life0, 'life1, 'async_trait>(
        &'life0 self,
        info: MinerInfo,
        auth: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Self::AuthorizeResult, StratumError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn subscribe<'life0, 'life1, 'async_trait>(
        &'life0 self,
        info: MinerInfo,
        subscribe_info: &'life1 Self::Subscribe,
        classic: bool
    ) -> Pin<Box<dyn Future<Output = Result<Self::SubscribeResult, StratumError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }

Associated Types

Loading content...

Required methods

#[must_use]fn authorize<'life0, 'life1, 'async_trait>(
    &'life0 self,
    info: MinerInfo,
    auth: &'life1 Self::Authorize,
    classic: bool
) -> Pin<Box<dyn Future<Output = Result<Self::AuthorizeResult, StratumError>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn authorize_username<'life0, 'life1, 'async_trait>(
    &'life0 self,
    info: MinerInfo,
    auth: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Self::AuthorizeResult, StratumError>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn subscribe<'life0, 'life1, 'async_trait>(
    &'life0 self,
    info: MinerInfo,
    subscribe_info: &'life1 Self::Subscribe,
    classic: bool
) -> Pin<Box<dyn Future<Output = Result<Self::SubscribeResult, StratumError>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

Loading content...

Implementors

Loading content...