[][src]Trait stratum_types::traits::BlockValidator

pub trait BlockValidator: Sync + Send + Clone {
    type Submit: DeserializeOwned + Serialize + Sync + Send + Clone + Debug;
    type Job: DeserializeOwned + Serialize + Sync + Send + Clone + Debug;
    fn init<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn validate_share<'life0, 'async_trait>(
        &'life0 self,
        info: MinerInfo,
        share: Self::Submit,
        classic: bool
    ) -> Pin<Box<dyn Future<Output = Result<bool, StratumError>> + Send + 'async_trait>>
    where
        'life0: '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 validate_share<'life0, 'async_trait>(
    &'life0 self,
    info: MinerInfo,
    share: Self::Submit,
    classic: bool
) -> Pin<Box<dyn Future<Output = Result<bool, StratumError>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

Loading content...

Implementors

Loading content...