Skip to main content

Module pack

Module pack 

Source
Expand description

Pack runtime trait and verb registry.

PackRuntime mirrors Pack’s const associated items as methods for object safety. Build a VerbRegistry via VerbRegistryBuilder::build(); registration is builder-only.

Structs§

EdgeEndpointRule
A pack-declared endpoint rule for a specific edge relation.
HandlerDef
Handler metadata for discovery and documentation.
NoteKindSpec
Kind-level schema specification for a note kind.
NoteLifecycleSpec
Lifecycle specification for a note kind.
PackRegistration
Newtype wrapper collected by inventory so pack crates can submit &'static dyn PackFactory references without the type-ascription syntax that inventory::submit! does not support for bare trait-object references.
PackRegistry
Registry of pack factories discovered via inventory at link time.
PackSchemaPlan
DDL statements the pack needs applied to the auxiliary schema.
ParamDef
Parameter type for help=true schema envelopes.
SchemaPlan
Pack-auxiliary schema plan.
VerbRegistry
Immutable registry that dispatches verb calls to registered packs.
VerbRegistryBuilder
Builder for constructing a VerbRegistry.

Enums§

EndpointKind
Match spec for one end of an EdgeEndpointRule.
PackLoadError
Error returned by PackRegistry::register_packs when boot validation fails.
VerbCategory
Illocutionary force classification for a verb handler.
VerbPresentationPolicy
Presentation override for a verb handler.
Visibility
Visibility tier for a handler.

Traits§

DispatchHook
Hook called after every successful verb dispatch (Issue #158).
KindHook
Per-kind specialization for shared CRUD.
PackFactory
Factory for creating pack instances registered via inventory at link time. Each pack crate submits a &'static dyn PackFactory wrapped in a PackRegistration; the binary’s linker collects them all into a single slice iterable at runtime.
PackRuntime
Async dispatch trait for packs.

Type Aliases§

VerbDefDeprecated
Backward-compatible type alias. Existing code that names VerbDef still compiles; new code should use HandlerDef directly.