Modules§
Macros§
Structs§
- Class
Setup - Core
AnyJS Typed Array - Core
Class - Represents a JavaScript class constructor
- CoreJS
Array - CoreJS
Array Buffer - CoreJS
Bytes - JavaScript-visible opaque byte handle.
- CoreJS
Context - CoreJS
Date - CoreJS
Exception - Represents a JavaScript exception object wrapper
- CoreJS
Func - CoreJS
Object - CoreJS
Proxy - CoreJS
Runtime - CoreJS
Symbol - CoreJS
Typed Array - CoreJS
Value - Core
Promise - Represents a JavaScript Promise object.
- Core
Property Descriptor - Host
Error - JSAsync
Iterator - Core JavaScript async iterator that wraps Rust streams.
- JSIterator
- Core JavaScript iterator that wraps Rust iterators.
- Pinned
Rong - Rong
- Rong
Executor - Host-side executor for non-JS async work.
- Rong
Executor Builder - Builder for
RongExecutor. - RongJS
Error - Source
- Task
Handle - Uint8
Clamped - Marker type for
Uint8ClampedArray. - Worker
Enums§
- Install
Global Executor Error - Errors returned when installing the process-global executor.
- JSTyped
Array Kind - Represents the different kinds of TypedArrays available in JavaScript.
- JSValue
Type - JsInvoke
Priority - Invocation priority
- Pinned
Spawn Error - Rong
Build Error - Rong
Executor Build Error - Errors returned when constructing a
RongExecutor. - Source
Kind - Task
Message - Worker
State
Constants§
- DEFAULT_
USER_ AGENT - Default User-Agent for Rong-hosted Web-ish APIs.
Traits§
- FromJS
Value - The trait that supports extract type from JSValue Why from_js_value don’t use V as input type ? Because it needs to return JSValue, JSObject.
- IntoJS
Async Iterator Ext - Extension trait for converting streams to JavaScript async iterators.
- IntoJS
Iterator Ext - Extension trait for converting iterables to JavaScript iterators.
- IntoJS
Value - convert to JS Value represented by trait JSValueImpl
- JSClass
- JSClass trait for rust type that supports TypeId
TypeIdis currently only available for types which ascribe to'static, - JSContext
Service - A trait for context-scoped services that can be attached to JSContext.
- JSEngine
- JSRuntime
Service - A trait for runtime services that can be attached to JSRuntime
- Json
ToJS Value - Converts a JSON string into a JSValue
Functions§
- enqueue_
js_ invoke - Enqueue a JS function invocation with priority/coalescing.
- get_
user_ agent - Get the current process-global User-Agent string.
- illegal_
constructor - install_
async_ iterator_ symbol - Install
[Symbol.asyncIterator]on an existing JS object (self-referential). - install_
iterator_ symbol - Install
[Symbol.iterator]on an existing JS object (self-referential). - set_
user_ agent - Set the process-global User-Agent string.
- spawn_
local
Type Aliases§
Attribute Macros§
- js_
class - Define JavaScript methods and properties for a class.
- js_
export - Expose a Rust struct or enum as a JavaScript object.
- js_
method - Configure how a Rust method is exposed to JavaScript.
Derive Macros§
- FromJS
Obj - Derive macro for implementing deserialization from JavaScript values to Rust structs.
- FromJS
Value - IntoJS
Obj - Derive macro for implementing serialization from Rust structs to JavaScript objects.