Expand description
Plexus RPC module - re-exported from hub-core
This module re-exports all Plexus RPC types from hub-core to avoid duplication. Substrate-specific activations use these types via this re-export.
Modules§
- bidirectional
- Bidirectional streaming support for Plexus RPC
- context
- Global Plexus RPC context for sharing state with activations
- dispatch
- HubDispatch trait for method delegation
- errors
- DEPRECATED: Stream-based guidance replaces error data structures
- hub_
context - HubContext - generic parent context injection for hub-aware plugins
- method_
enum - Method enum schema trait for activations
- middleware
- DEPRECATED: Stream-based guidance replaces middleware
- path
- plexus
- DynamicHub - the central routing layer for activations
- schema
- streaming
- Streaming helpers for the caller-wraps architecture
- types
- Plexus RPC streaming types
Structs§
- Activation
Info - Activation
Registry - Activation info needed for generating guided errors (DEPRECATED - kept for backwards compat)
- Bidir
Channel - Generic bidirectional channel for type-safe server-to-client requests.
- Child
Hashes - Child
Summary - Summary of a child plugin
- Dynamic
Hub - DynamicHub - an activation that routes to dynamically registered child activations
- Guided
Error - Builder for creating guided JSON-RPC errors
- Guided
Error Data - Error data with
tryfield for guided discovery - Guided
Error Middleware - Middleware that enriches error responses with guided
trysuggestions (DEPRECATED - no-op) - Handle
- Handle pointing to external data with versioning
- Method
Schema - Schema for a single method exposed by a plugin
- NoParent
- A no-op context for plugins that don’t need parent access.
- Plexus
Context - Shared Plexus RPC context accessible to all activations
- Plugin
Hashes - Schema summary containing only hashes (for cache validation)
- Plugin
Schema - A plugin’s schema with methods and child summaries.
- Provenance
- Tracks provenance through nested behavior calls
- Schema
- A complete JSON Schema with metadata
- Schema
Property - A property definition in a schema
- Select
Option - An option in a
StandardRequest::Selectrequest. - Stream
Metadata - Metadata applied by the caller when wrapping activation responses
- TryRequest
- A suggested JSON-RPC request to try next
Enums§
- Bidir
Error - Error types for bidirectional communication
- Plexus
Error - Plexus
Stream Item - Universal stream item - all activations emit this type
- Schema
Result - Result of a schema query - either full plugin or single method
- Schema
Type - Schema type enumeration
- Standard
Request - Standard request types for common interactive UI patterns.
- Standard
Response - Standard response types matching
StandardRequest. - Stream
Item - Simple stream item for dispatch results
- Transport
Error Kind
Traits§
- Activation
- Child
Router - Trait for activations that can route to child activations
- HubContext
- Trait for parent context that can be injected into child plugins.
- HubDispatch
- Trait for types that can dispatch method calls
- Method
Enum Schema - Trait for method enums that can generate schema with const discriminators
- Parent
Aware - Marker trait for plugins that accept parent context injection.
Functions§
- create_
bidir_ stream - Create a bidirectional channel and wrap a stream, merging Request items
- done_
stream - Create a done stream
- error_
stream - Create an error stream
- from_
dispatch_ stream - Create a PlexusStream from a dispatch stream (convenience function)
- progress_
stream - Create a progress stream
- route_
to_ child - Route a method call to a child activation
- wrap_
stream - Wrap a typed stream into PlexusStream with automatic Done event
- wrap_
stream_ with_ bidir - Wrap a typed stream with bidirectional support
Type Aliases§
- Plexus
Stream - Type alias for boxed stream of PlexusStreamItem
- Standard
Bidir Channel - Type alias for standard interactive UI patterns.