Skip to main content

SidecarJsBridgeCallback

Type Alias SidecarJsBridgeCallback 

Source
pub type SidecarJsBridgeCallback = Arc<dyn Fn(SidecarJsBridgeCall) -> BoxFuture<'static, Result<Option<Value>, String>> + Send + Sync>;
Expand description

Host-side handler for sidecar JsBridgeCallRequest payloads.

This is Rust-only and intentionally not JSON-serializable. RivetKit uses it to bind a native sidecar root filesystem to actor-owned SQLite (ctx.db_*) without teaching agentos about Rivet actors.

Aliased Typeยง

pub struct SidecarJsBridgeCallback { /* private fields */ }