Expand description
Role-method dispatch slot placeholders. Each *Slot unit
struct is a generic slot bound at compile time via
Compiler::new().bind_<role>::<T>("slot"). DSL methods record
NodeProtos stamped with (required_trait, slot_id) for
binding-resolution routing.
ⓘ
pub struct MyModule {
backend: BackendSlot, // bind any BackendRuntime
data: DataLoaderSlot, // bind any DataSourceRuntime
}Structs§
- Aggregator
Slot - Generic Aggregator slot placeholder. Bind a concrete
AggregatorRuntimeat compile time viaCompiler::new().bind_aggregator::<T>("slot"). ExposesContribute+Aggregate. - Backend
Slot - Generic Backend slot. Carries the
ai.onnx v1DSL catalog (48 methods). Outputs are typed&TYPE_TENSOR_F32. TheBackendSubgraphcarrier is compiler-emitted, not a DSL method. - Codec
Slot - Generic Codec slot placeholder. Embed as
codec: CodecSlotin your Module struct; bind a concreteCodecRuntimeviaCompiler::new().bind_codec::<T>("slot")…. - Data
Loader Slot - Generic DataSource slot placeholder. Bind a concrete
DataSourceRuntimeviaNode::with_data_source(...). ExposesNextBatch,Reset,OnDataLoadedperdocs/IR_AND_DSL.md§5c.2. - Index
Slot - Generic Index slot placeholder. Bind a concrete
IndexRuntimeviaNode::with_index(...). Exposes the three role-method DSL operations:Add,Search,Remove. - Model
Slot - Generic Model slot placeholder. Bind a concrete
ModelRuntimeviaNode::with_model(...). Exposes the six role-method DSL operations:Forward,Backward,ComputeLoss,ApplyDelta,LoadParameters,Params. - Peer
Selector Slot - Generic PeerSelector slot placeholder. Bind a concrete
PeerSelectorRuntimeviaNode::with_peer_selector(...). ExposesSample,CurrentView - Protocol
Slot - Generic Protocol slot placeholder. Bind a concrete protocol at this
slot via the compiler chain
(
Compiler::new().bind_protocol::<T>("slot").compile(...)).