referrerpolicy=no-referrer-when-downgrade

Trait polkadot_overseer::Subsystem

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

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

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§

fn start(self, ctx: Ctx) -> SpawnedSubsystem<E>

Start this Subsystem and return SpawnedSubsystem.

Implementors§

source§

impl<Context> Subsystem<Context, SubsystemError> for DummySubsystem
where Context: SubsystemContext<Signal = OverseerSignal, Error = SubsystemError>,