pub struct QuickJsRuntimeAdapter { /* private fields */ }

Implementations

get memory usage for this runtime

Safety

When passing a context pointer please make sure the corresponding QuickJsContext is still valid

run the garbage collector

run pending jobs if avail

todo

move this to a quickjs_utils::pending_jobs so it can be used without doing QuickjsRuntime.do_with()

this method tries to load a module script using the runtimes script_module loaders

Trait Implementations

Executes the destructor for this type. Read more
this method can be used to load the script code for a module (via any ScriptModuleLoader)
create a new Realm
drop a Realm, please note that the Realm might not really be dropped until all promises have fulfilled please note that this should not be able to remove the main realm Read more
get a Realm, if the realm does not exists None will be returned
get the main realm, this realm is always present and cannot be removed
add a hook to add custom code for when a Realm is initialized when adding a hook it will also be called for existing realms including the main realm Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.