Skip to main content

Crate stdiobus_core

Crate stdiobus_core 

Source
Expand description

Core types and protocol models for stdio_bus

This crate provides the fundamental types used across all stdio_bus components:

  • Error types with canonical error codes
  • Bus state machine
  • JSON-RPC message types
  • Statistics and configuration types
  • Backend trait for implementations

Structs§

BusConfig
stdio_bus JSON configuration.
BusMessage
Message received from the bus
BusStats
Runtime statistics
DockerOptions
Docker backend options
ExtensionInfo
Information about a single extension
Extensions
Extension negotiation data
Identity
Identity extension data
JsonRpcError
JSON-RPC 2.0 error object
JsonRpcRequest
JSON-RPC 2.0 request
JsonRpcResponse
JSON-RPC 2.0 response
LimitsConfig
Operational limits.
PoolConfig
Worker pool configuration.
RequestOptions
Options for individual requests

Enums§

BackendMode
Backend mode selection
BusState
State of the stdio_bus instance
ConfigSource
Configuration source for the bus.
Error
Main error type for stdio_bus operations
ErrorCode
Canonical error codes for stdio_bus operations
JsonRpcMessage
Generic JSON-RPC message (can be request or response)

Traits§

Backend
Backend trait that all implementations must satisfy

Functions§

generate_client_session_id
Generate a unique client session ID for stdiobus routing.

Type Aliases§

Result
Result type alias for stdio_bus operations