[][src]Struct jni::InitArgsBuilder

pub struct InitArgsBuilder { /* fields omitted */ }

Builder for JavaVM InitArgs.

This API requires "invocation" feature to be enabled, see "Launching JVM from Rust".

Methods

impl InitArgsBuilder[src]

pub fn new() -> Self[src]

Create a new default InitArgsBuilder

pub fn option(self, opt_string: &str) -> Self[src]

Add an option to the init args

The vfprintf, abort, and exit options are unsupported at this time.

pub fn version(self, version: JNIVersion) -> Self[src]

Set JNI version for the init args

Default: V8

pub fn ignore_unrecognized(self, ignore: bool) -> Self[src]

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

pub fn build(self) -> Result<InitArgs>[src]

Build the InitArgs

This will check for internal nulls in the option strings and will return an error if one is found.

pub fn options(&self) -> Vec<String>[src]

Returns collected options

Trait Implementations

impl Default for InitArgsBuilder[src]

impl Debug for InitArgsBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]