The main philosofy of this library is to push as many errors to compile-time as possible and panic whenever it's impossible to have a compile error.
Generate Java class wrapper.
Generate Java interface wrapper.
Arguments for attaching a thread to the JVM.
A dual token to
Arguments for creating a Java VM.
A struct for interacting with the Java VM.
The interface for interacting with Java.
All calls to Java are performed through this interface.
JNI methods can only be called from threads, explicitly attached to the Java VM.
A token that represents that there is no pending Java exception in the current thread.
Errors returned by JNI function.
JNI Version enum.
Options for starting a Java VM.
Verbose options for starting a Java VM.
A trait for casting Java object types to their superclasses.
A trait that represents Rust types that are mappable to JNI types. This trait has to be implemented for all types that need to be passed as arguments to or returned from Java functions.
A type that represents a result of a Java method call. A Java method can either return
a result or throw a