[−][src]Trait stratum_types::traits::BlockValidator
Associated Types
type Submit: DeserializeOwned + Serialize + Sync + Send + Clone + Debug
type Job: DeserializeOwned + Serialize + Sync + Send + Clone + Debug
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,
&'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
) -> Pin<Box<dyn Future<Output = Result<bool, StratumError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
&'life0 self,
info: MinerInfo,
share: Self::Submit
) -> Pin<Box<dyn Future<Output = Result<bool, StratumError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,