Struct jni::InitArgsBuilder
source · [−]pub struct InitArgsBuilder { /* private fields */ }
Expand description
Builder for JavaVM InitArgs.
This API requires “invocation” feature to be enabled, see “Launching JVM from Rust”.
Implementations
sourceimpl InitArgsBuilder
impl InitArgsBuilder
sourcepub fn option(self, opt_string: &str) -> Self
pub fn option(self, opt_string: &str) -> Self
Add an option to the init args
The vfprintf
, abort
, and exit
options are unsupported at this time.
sourcepub fn version(self, version: JNIVersion) -> Self
pub fn version(self, version: JNIVersion) -> Self
Set JNI version for the init args
Default: V8
sourcepub fn ignore_unrecognized(self, ignore: bool) -> Self
pub fn ignore_unrecognized(self, ignore: bool) -> Self
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
Trait Implementations
sourceimpl Debug for InitArgsBuilder
impl Debug for InitArgsBuilder
Auto Trait Implementations
impl RefUnwindSafe for InitArgsBuilder
impl Send for InitArgsBuilder
impl Sync for InitArgsBuilder
impl Unpin for InitArgsBuilder
impl UnwindSafe for InitArgsBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more