Struct unqlite::document::UnQLiteVm [] [src]

pub struct UnQLiteVm { /* fields omitted */ }

UnQLite Virtual Machine Object

Wrapper for native unqlite_vm structure, related functions and configuration.

Methods

impl UnQLiteVm
[src]

Virtual Machine Object configuration and execution

[src]

Execute a compiled Jx9 program.

[src]

Execute a compiled Jx9 program. Jx9 script return value ignored.

[src]

Dump Jx9 virtual machine instructions to stdout.

[src]

Redirect VM output to std::sync::mpsc::Sender<Vec<u8>> and return corresponding Receiver.

Should be called before exec() method.

[src]

Redirect VM output to stdout. Should be called before exec() method.

[src]

If the host application did not install a VM output consumer (output_to_* functions), then the Virtual Machine will automatically redirect its output to an internal buffer. Should be called after exec() method.

[src]

Return the total number of bytes that have been outputted by the Virtual Machine during program execution.

Should be called after exec() method.

[src]

Add a path to the import search directories for using in include or import Jx9 constructs. Should be called before exec() method.

[src]

All Jx9 run-time errors will be reported to the VM output. Should be called before exec() method.

[src]

Set a recursion limit to the running script. That is, a function may not call itself (recurse) more than this limit. If this limit is reached then the virtual machine abort the call and null is returned to the caller instead of the function return value.

Should be called before exec() method.

[src]

Populate the $argv[n] predefined Jx9 variable. First call of this method setups $argv[0], second $argv[1]...

Should be called before exec() method.

[src]

Manually populate the $_ENV predefined JSON object which hold environments variable. Should be called before exec() method.

[src]

[src]

Extract the content of a variable declared inside your Jx9 script. Should be called before exec() method.

Trait Implementations

impl Clone for UnQLiteVm
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Send for UnQLiteVm
[src]

impl Sync for UnQLiteVm
[src]

impl Drop for UnQLiteVm
[src]

[src]

Destroy a unQLite virtual machine.