referrerpolicy=no-referrer-when-downgrade
polkadot_service::overseer

Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§