Skip to main content

Module plexus

Module plexus 

Source
Expand description

DynamicHub - the central routing layer for activations

DynamicHub IS an activation that also serves as the registry for other activations. It implements the Plexus RPC protocol for routing and introspection. It uses hub-macro for its methods, with the call method using the streaming pattern to forward responses from routed methods.

Structs§

ActivationInfo
ChildCapabilitiesDeprecated
Opt-in capability flags advertising which optional ChildRouter operations a router supports.
ChildHashes
Hash information for a child plugin
DynamicHub
DynamicHub - an activation that routes to dynamically registered child activations
PluginEntry
Entry in the activation registry
PluginHashes
Lightweight hash information for cache validation
PluginRegistry
Registry mapping activation UUIDs to their current paths
PluginRegistrySnapshot
Read-only snapshot of the activation registry

Enums§

AuthzDenyReason
Why a PlexusError::Forbidden denial fired — the layered denial model’s typed discriminator (AUTHZ-S01-output §1, R-5).
DynamicHubMethod
Auto-generated method enum for schema extraction
HashEvent
PlexusError
SchemaEvent
Event for schema() RPC method - returns plugin schema
TransportErrorKind

Constants§

PLEXUS_NOTIF_METHOD
The JSON-RPC method name used in all plexus subscription notifications.

Traits§

Activation
ChildRouter
Trait for activations that can route to child activations
DynamicHubRpcServer
Server trait implementation for the DynamicHubRpc RPC API.

Functions§

error_item
AUTH-2: the error stream item a failed dispatch of ns.call sends for e, as JSON — {"type":"error","metadata","message","code", "recoverable"} plus, for an auth refusal, error_kind and (a missing grant) grant, scope, roles, held_on. Public so a transport that renders dispatch errors itself renders them the same way.
route_to_child
Route a method call to a child activation