Crate js_sidecar

Source
Expand description

js_sidecar is s Rust crate that makes it easy to JavaScript instead of embedding a JS library directly into the application, passes JavaScript code to a separate, persistent Node.js process for execution.

Structs§

CodeModule
A ES Module to be importable by the script
Connection
A connection to Node.js. Multiple calls on a connection will reuse the execution context, unless explicitly specified otherwise using the [recreate_context] argument.
ConnectionManager
deadpool Manager for Sidecar connections
ErrorResponseData
FunctionDef
A function to be injected into the context.
JsSidecar
JsSidecar starts the Node.js process and allows connecting to its socket.
LogResponseData
RunResponseData
RunScriptAndWaitResult
The result of running a script
RunScriptArgs
Data associated with the RunScript message

Enums§

Error

Type Aliases§

PoolConnection
A connection obtained from the connectiion pool inside the JsSidecar.