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

Create a new default InitArgsBuilder

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.

Returns collected options

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. 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

Performs the conversion.

Performs the conversion.

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.