Skip to main content

Module module_factory

Module module_factory 

Source
Expand description

Custom module factory — type registry for rack module construction Module factory — type-registry for modular rack module construction.

ModuleFactory is the single creation point for all rack modules: Servo, Sensor, Graph, and Custom. Each archetype registers a [ModuleConstructor] that receives a [ModuleDef] descriptor and returns an [ActorRef<CommandEnum>] for the rack actor fan-out.

Structs§

ModuleFactory
Registry that maps module type names to constructors.

Enums§

Drain
How the actor’s drain loop is spawned.
ModuleError
Errors returned by module construction via the type-registry.

Traits§

ModuleConstructor
Constructs rack modules from a ModuleDef descriptor.