pub struct Jvm { /* private fields */ }Expand description
Holds a reference to the embedded JVM.
Implementations§
Source§impl Jvm
impl Jvm
Sourcepub fn new(jvm_option_strings: &[&str]) -> Jvm
pub fn new(jvm_option_strings: &[&str]) -> Jvm
Tries to instantiate the embedded JVM.
The JNI does not allow the creation of multiple JVMs in the same process (it seems, not even
sequentially). An attempt will result in a panic.
§Arguments
jvm_option_strings- a list of JVM option strings.
§Example
use rucaja::Jvm;
{
Jvm::new(&["-Xcheck:jni"]);
}Trait Implementations§
Auto Trait Implementations§
impl Freeze for Jvm
impl RefUnwindSafe for Jvm
impl !Send for Jvm
impl !Sync for Jvm
impl Unpin for Jvm
impl UnwindSafe for Jvm
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more