Re-exports
pub use jsi_sys as sys;
Modules
Macros
- Creates a JavaScript
Error
object with the given string as the message.
Structs
- 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.
- A JavaScript
Array
. Can be used to share large buffers of data with a React Native application. - A JavaScript
ArrayBuffer
. Can be used to share large buffers of data with a React Native application. - Desrializes objects from JavaScript via JSI. Useful for transferring Rust structures and objects from
serde_json
from JavaScript. - A JavaScript function.
- A JavaScript
Object
. - Serializes objects into JavaScript via JSI. Useful for transferring Rust structures and objects from
serde_json
into JavaScript. - A JavaScript
String
- A JavaScript
Symbol
- An owned 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. - A
PropName
, which is used to retrieve properties fromObject
s. - A shared reference to a host object
- A host object that is implemented in Rust using a
UserHostObject
trait object.
Enums
Traits
- 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). - Support trait to allow implementation of async functions via attribute macro.
- Conversion trait to and from
JsiValue
. This is needed instead of the normalInto
trait b/c creating a JsiValue requires aRuntimeHandle
. - Helper trait for implementing a host object in Rust
Functions
Type Definitions
Attribute Macros
- A macro that makes it easy to define functions and properies on host objects.