Re-exports§
pub use jsi_sys as sys;
Modules§
Macros§
- js_
error - Creates a JavaScript
Error
object with the given string as the message.
Structs§
- Call
Invoker - Used to run JavaScript functions in a given runtime from Rust. Required when trying to call a JavaScript function from a thread other than the JS thread.
- JsiArray
- A JavaScript
Array
. Can be used to share large buffers of data with a React Native application. - JsiArray
Buffer - A JavaScript
ArrayBuffer
. Can be used to share large buffers of data with a React Native application. - JsiArray
Iter - JsiDeserializer
- Desrializes objects from JavaScript via JSI. Useful for transferring Rust
structures and objects from
serde_json
from JavaScript. - JsiFn
- A JavaScript function.
- JsiObject
- A JavaScript
Object
. - JsiSerializer
- Serializes objects into JavaScript via JSI. Useful for transferring Rust
structures and objects from
serde_json
into JavaScript. - JsiString
- A JavaScript
String
- JsiSymbol
- A JavaScript
Symbol
- JsiValue
- Owned
JsiHost Object - An owned host object
- Owned
JsiUser Host Object - A host object that is implemented in Rust using a
UserHostObject
trait object. Start with this if you want to implement a host object. - Prop
Name - A
PropName
, which is used to retrieve properties fromObject
s. - Runtime
Handle - Shared
JsiHost Object - A shared reference to a host object
- Shared
JsiUser Host Object - A host object that is implemented in Rust using a
UserHostObject
trait object.
Enums§
Traits§
- AsValue
- Conversion trait to and from
JsiValue
. This is needed instead of the normalInto
trait b/c creating a JsiValue requires aRuntimeHandle
. Note that using this trait will create a copy of the data being converted (ex.: usingas_value()
on aJsiObject
will create a value that contains a copy of that object). - Async
User Host Object - Support trait to allow implementation of async functions via attribute macro.
- Deserialize
Value - From
Object - From
Value - Into
Object - Into
Value - Conversion trait to and from
JsiValue
. This is needed instead of the normalInto
trait b/c creating a JsiValue requires aRuntimeHandle
. - Runtime
Clone - Runtime
Display - Runtime
Eq - Serialize
Value - User
Host Object - Helper trait for implementing a host object in Rust
Functions§
Type Aliases§
Attribute Macros§
- host_
object - A macro that makes it easy to define functions and properies on host objects.