[−][src]Struct jni::InitArgsBuilder
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
impl Send for InitArgsBuilder
impl Sync for InitArgsBuilder
impl Unpin for InitArgsBuilder
impl UnwindSafe for InitArgsBuilder
impl RefUnwindSafe for InitArgsBuilder
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,