Trait polkadot_node_subsystem_util::Subsystem[][src]

pub trait Subsystem<Ctx, E> where
    Ctx: SubsystemContext,
    E: 'static + Error + Send + Sync + From<OverseerError>, 
{ fn start(self, ctx: Ctx) -> SpawnedSubsystem<E>; }
Expand description

A trait that describes the Subsystems that can run on the Overseer.

It is generic over the message type circulating in the system. The idea that we want some type containing persistent state that can spawn actually running subsystems when asked.

Required methods

Start this Subsystem and return SpawnedSubsystem.

Implementations on Foreign Types

Implementors