Skip to main content

Crate rong

Crate rong 

Source

Modules§

error
Error-related public API (stable codes + boundary types).
function
sse
upload

Macros§

err_data

Structs§

ClassSetup
CoreAnyJSTypedArray
CoreClass
Represents a JavaScript class constructor
CoreJSArray
CoreJSArrayBuffer
CoreJSBytes
JavaScript-visible opaque byte handle.
CoreJSContext
CoreJSDate
CoreJSException
Represents a JavaScript exception object wrapper
CoreJSFunc
CoreJSObject
CoreJSProxy
CoreJSRuntime
CoreJSSymbol
CoreJSTypedArray
CoreJSValue
CorePromise
Represents a JavaScript Promise object.
CorePropertyDescriptor
HostError
JSAsyncIterator
Core JavaScript async iterator that wraps Rust streams.
JSIterator
Core JavaScript iterator that wraps Rust iterators.
PinnedRong
Rong
RongExecutor
Host-side executor for non-JS async work.
RongExecutorBuilder
Builder for RongExecutor.
RongJSError
Source
TaskHandle
Uint8Clamped
Marker type for Uint8ClampedArray.
Worker

Enums§

InstallGlobalExecutorError
Errors returned when installing the process-global executor.
JSTypedArrayKind
Represents the different kinds of TypedArrays available in JavaScript.
JSValueType
JsInvokePriority
Invocation priority
PinnedSpawnError
RongBuildError
RongExecutorBuildError
Errors returned when constructing a RongExecutor.
SourceKind
TaskMessage
WorkerState

Constants§

DEFAULT_USER_AGENT
Default User-Agent for Rong-hosted Web-ish APIs.

Traits§

FromJSValue
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.
IntoJSAsyncIteratorExt
Extension trait for converting streams to JavaScript async iterators.
IntoJSIteratorExt
Extension trait for converting iterables to JavaScript iterators.
IntoJSValue
convert to JS Value represented by trait JSValueImpl
JSClass
JSClass trait for rust type that supports TypeId TypeId is currently only available for types which ascribe to 'static,
JSContextService
A trait for context-scoped services that can be attached to JSContext.
JSEngine
JSRuntimeService
A trait for runtime services that can be attached to JSRuntime
JsonToJSValue
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§

JSResult

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§

FromJSObj
Derive macro for implementing deserialization from JavaScript values to Rust structs.
FromJSValue
IntoJSObj
Derive macro for implementing serialization from Rust structs to JavaScript objects.