Skip to main content

Module concrete

Module concrete 

Source
Expand description

ConcreteComponent polymorphism contract + the ComponentHandle fn-pointer-capture wrapper. ConcreteComponent polymorphism contract + ComponentHandle fn-pointer-capture wrapper. See docs/AUTHORING_COMPONENTS.md §4 + §9.

Structs§

ComponentHandle
Owned wrapper that travels through the ModelProto → Node pipeline. Carries captured fn pointers + state bytes.
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§

ConcreteComponent
Polymorphism contract. Implementing this trait IS the registration mechanism — no global registry, no macro required. Serialized state must be self-contained so restore reconstructs without the original Config.

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.