Crate rogue_runtime

Source
Expand description

runtime crate

Provides the core infrastructure for asynchronous RPC, including:

  • Runtime: manages message dispatch and executor registration.
  • CONTEXT: task-local RPC context for client and server execution.
  • Traits: MessageHandler and TypeInfo for defining handlers.
  • Message definitions and serialization utilities.

Re-exports§

pub use inventory;
pub use serde;
pub use sha2;
pub use tracing;

Modules§

api
prelude

Macros§

rpc
Procedural macro rpc! – transforms async functions and methods into remote‑callable RPC endpoints.

Structs§

HandlerRegistration
Registration entry for automatic handler registration via inventory
InventoryFunctionItem
InventoryTraitItem
ObjectRef
RuntimeContext
Task-local execution context for RPC calls.
RuntimeImpl
The core RPC runtime.
RuntimeInfo
Information about runtime

Enums§

InventoryItem

Statics§

CONTEXT

Traits§

AutoRegister
Identity
Trait used to identify objects (data stored in database, instances of structs using rpc)
InventoryItemInfo
InventoryItemProvider
MessageHandler
Trait for messages that can be handled by the runtime
RuntimeTrait
TypeInfo
Provides static type metadata for message types.

Type Aliases§

InstanceId
Runtime
RuntimeId
TypeId

Attribute Macros§

async_trait