Skip to main content

Module component

Module component 

Source
Expand description

Foundation polymorphism plumbing shared by bb-dsl (authoring) and bb-runtime (dispatch).

Structs§

ConstructError
Errors surfaced by ConstructFn.
DependencyDecl
Author-declared sibling dependency at a named slot. Compiler verifies role match; runtime reaches it via RuntimeResourceRef::dependency::<T>(slot).

Enums§

ComponentPackage
Component-package origin tag. Surfaces in introspection + telemetry.
RestoreError
Error variants surfaced by ConcreteComponent::restore.

Traits§

AnyComponent
Dyn-safe downcast surface. No blanket impl — Box<dyn AnyComponent> would otherwise shadow per-type vtables. bb::Concrete derive emits the impl.
ErasedComponent
Marker for engine-owned component instances. Blanket impl covers every Any + Send + Sync.

Type Aliases§

ConstructFn
Per-type constructor. Downcasts &dyn Any&Config and calls T::new. Install looks it up by TYPE_NAME.
RestoreFn
Monomorphized T::restore; used by snapshot/resume.
SerializeFn
Monomorphized T::serialize captured at derive-codegen time.