[][src]Crate nj_core

Modules

bigint
buffer
future
log
stream
sys
val

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

JsPromiseFuture
PropertiesBuilder
Property
ThreadSafeFunction

Wrapper for thread safe function that are safe to send and sync across thread

Enums

NapiStatus
NjError

Traits

IntoJs

convert to js including error

JSClass
JSValue

Convert napi value to Rust value

NjFutureExt
TryIntoJs

convert to JS object

Functions

create_promise

create promise and schedule work when this is finished it will return result in the main thread

init_logger
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.