referrerpolicy=no-referrer-when-downgrade
polkadot_node_core_approval_voting

Trait ApprovalVotingWorkProvider

Source
pub trait ApprovalVotingWorkProvider {
    // Required method
    fn recv<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = SubsystemResult<FromOrchestra<ApprovalVotingMessage>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Trait for providing approval voting subsystem with work.

Required Methods§

Source

fn recv<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = SubsystemResult<FromOrchestra<ApprovalVotingMessage>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§

Source§

impl<Context> ApprovalVotingWorkProvider for Context
where Context: ApprovalVotingContextTrait + SubsystemContext, <Context as ApprovalVotingContextTrait>::Sender: ApprovalVotingSenderTrait, <Context as SubsystemContext>::Sender: ApprovalVotingSenderTrait,

impl<T> ApprovalVotingWorkProvider for WorkProviderImpl<T>
where T: Stream<Item = FromOrchestra<ApprovalVotingMessage>> + Unpin + Send,