[][src]Crate jni_glue

Common glue code between Rust and JNI, used in autogenerated jni-bindgen glue code.

See also the Android JNI tips documentation as well as the Java Native Interface Specification.

Structs

Argument

FFI: Use Argument<java::lang::Object> instead of jobject. This represents a (null?) function argument.

BooleanArray

A PrimitiveArray implementation.

ByteArray

A PrimitiveArray implementation.

CharArray

A PrimitiveArray implementation.

DoubleArray

A PrimitiveArray implementation.

Env

FFI: Use &Env instead of *const JNIEnv. This represents a per-thread Java exection environment.

FloatArray

A PrimitiveArray implementation.

Global

A Global, non-null, reference to a Java object (+ &VM).

IntArray

A PrimitiveArray implementation.

Local

A Local, non-null, reference to a Java object (+ &Env) limited to the current thread/stack.

LongArray

A PrimitiveArray implementation.

Ref

A non-null, reference to a Java object (+ &Env). This may refer to a Local, Global, local Argument, etc.

ShortArray

A PrimitiveArray implementation.

VM

FFI: Use &VM instead of *const JavaVM. This represents a global, process-wide Java exection environment.

jchar

Traits

PrimitiveArray

Functions

JNI_OnLoad

Do not call! Automatically invoked by the JVM. See "unsafe-manual-jni-load-unload" to override this behavior.

JNI_OnUnload

Do not call! Automatically invoked by the JVM. See "unsafe-manual-jni-load-unload" to override this behavior.

Type Definitions

ArgumentRef

A Local, non-null, reference to a Java object (+ &Env).

GlobalRef

A Global, non-null, reference to a Java object (+ &Env).

Result

The result of calling a JNI function - either Ok(return_value) or Err(exception).