Trait polkadot_service::overseer::OverseerGen

source ·
pub trait OverseerGen {
    // Required method
    fn generate<Spawner, RuntimeClient>(
        &self,
        connector: OverseerConnector,
        args: OverseerGenArgs<'_, Spawner, RuntimeClient>,
        ext_args: Option<ExtendedOverseerGenArgs>,
    ) -> Result<(Overseer<SpawnGlue<Spawner>, Arc<RuntimeClient>>, OverseerHandle), Error>
       where RuntimeClient: RuntimeApiSubsystemClient + ChainApiBackend + AuxStore + 'static,
             Spawner: 'static + SpawnNamed + Clone + Unpin;
}
Expand description

Trait for the fn generating the overseer.

Required Methods§

source

fn generate<Spawner, RuntimeClient>( &self, connector: OverseerConnector, args: OverseerGenArgs<'_, Spawner, RuntimeClient>, ext_args: Option<ExtendedOverseerGenArgs>, ) -> Result<(Overseer<SpawnGlue<Spawner>, Arc<RuntimeClient>>, OverseerHandle), Error>
where RuntimeClient: RuntimeApiSubsystemClient + ChainApiBackend + AuxStore + 'static, Spawner: 'static + SpawnNamed + Clone + Unpin,

Overwrite the full generation of the overseer, including the subsystems.

Object Safety§

This trait is not object safe.

Implementors§