Modules§
Macros§
- assert_
napi - assert the napi call
- c_str
- callback_
to_ napi - method
- napi_
call_ assert - call napi and assert used only in this crate
- napi_
call_ result - call napi and wrap into result used only in this crate
- result_
to_ napi - convert result into napi value if ok otherwise convert to error
Structs§
- JsPromise
Future - Properties
Builder - Property
- Thread
Safe Function - Wrapper for thread safe function that are safe to send and sync across thread
Enums§
Traits§
- IntoJs
- convert to js including error
- JSClass
- JSValue
- Convert napi value to Rust value
- NjFuture
Ext - TryInto
Js - convert to JS object
Functions§
- create_
promise - create promise and schedule work when this is finished it will return result in the main thread
- submit_
property - submit property for including in global registry
- submit_
register_ callback
Attribute Macros§
- ctor
- Marks a function or static variable as a library/executable constructor. This uses OS-specific linker sections to call a specific function at load time.