Struct jni::JavaVM[][src]

pub struct JavaVM(_);

The invocation API.

Methods

impl JavaVM
[src]

Create a JavaVM from a raw pointer.

Returns underlying sys::JavaVM interface.

Attaches the current thread to a Java VM. The resulting AttachGuard can be dereferenced to a JNIEnv and automatically detaches the thread when dropped.

Attaches the current thread to a Java VM as a daemon.

Get the JNIEnv associated with the current thread, or ErrorKind::Detached if the current thread is not attached to the java VM.

Trait Implementations

impl Send for JavaVM
[src]

impl Sync for JavaVM
[src]