Struct rust_jni::InitArguments[][src]

pub struct InitArguments { /* fields omitted */ }

Arguments for creating a Java VM.

JNI documentation

Example

use rust_jni::{InitArguments, JniVersion, JvmOption, JvmVerboseOption};

let options = InitArguments::get_default(JniVersion::V8).unwrap()
    .with_option(JvmOption::Unknown("-Xgc:parallel".to_owned()))
    .with_option(JvmOption::Verbose(JvmVerboseOption::Gc));

assert_eq!(options.version(), JniVersion::V8);

Methods

impl InitArguments
[src]

Get default Java VM init arguments for a JNI version. If the requested JNI version is not supported, returns None.

JNI documentation

Get default Java VM init arguments for a JNI version. If the requested JNI version is not supported, returns default arguments for the closest supported JNI version. The new version can be obtained with the InitArguments::version() method.

JNI documentation

Get default init arguments for the latest supported JNI version.

JNI documentation

Add init options to the Java VM init arguments.

JNI documentation

Add an init option to the Java VM init arguments.

JNI documentation

Disable checking JNI calls for correctness.

Enable checking JNI calls for correctness.

This is a default. Only needed to be called if checking JNI calls was explicitly disabled.

Request for JVM to ignore unrecognized options on startup.

JNI documentation

Request for JVM to fail in presence of unrecognized options on startup.

JNI documentation

Return the JNI version these arguments will request when creating a Java VM.

JNI documentation

Trait Implementations

impl Debug for InitArguments
[src]

Formats the value using the given formatter. Read more

impl Clone for InitArguments
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for InitArguments
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for InitArguments
[src]

Auto Trait Implementations