Struct jni::InitArgsBuilder [−][src]
pub struct InitArgsBuilder { /* fields omitted */ }
Expand description
Builder for JavaVM InitArgs.
This API requires “invocation” feature to be enabled, see “Launching JVM from Rust”.
Implementations
Add an option to the init args
The vfprintf
, abort
, and exit
options are unsupported at this time.
Set JNI version for the init args
Default: V8
Set the ignoreUnrecognized
init arg flag
If ignoreUnrecognized is true, JavaVM::new ignores all unrecognized option strings that begin with “-X” or “_”. If ignoreUnrecognized is false, JavaVM::new returns Err as soon as it encounters any unrecognized option strings.
Default: false
Build the InitArgs
This will check for internal nulls in the option strings and will return an error if one is found.