Skip to main content

Crate rustbridge_runtime

Crate rustbridge_runtime 

Source
Expand description

rustbridge-runtime - Tokio async runtime integration

This crate provides:

  • AsyncRuntime for managing the Tokio runtime
  • AsyncBridge for bridging sync FFI calls to async handlers
  • Graceful shutdown support with broadcast signals

Modules§

prelude
Prelude module for convenient imports

Structs§

AsyncBridge
Bridge for executing async operations from sync FFI context
AsyncRuntime
Manages the Tokio async runtime for a plugin
RuntimeConfig
Configuration for the async runtime
ShutdownHandle
Handle for triggering shutdown
ShutdownSignal
Signal for detecting shutdown (cloneable, can be passed to tasks)