Crate java_spaghetti
source ·Expand description
Common glue code between Rust and JNI, used in autogenerated java-spaghetti
glue code.
See also the Android JNI tips documentation as well as the Java Native Interface Specification.
Re-exports§
pub use ::jni_sys as sys;
Structs§
- FFI: Use Arg<java::lang::Object> instead of jobject. This represents a (null?) function argument.
- A PrimitiveArray implementation.
- A PrimitiveArray implementation.
- Error returned on failed
.cast()
.` - A PrimitiveArray implementation.
- A PrimitiveArray implementation.
- FFI: Use Env instead of *const JNIEnv. This represents a per-thread Java exection environment.
- A PrimitiveArray implementation.
- A PrimitiveArray implementation.
- A PrimitiveArray implementation.
- A Java Array of reference types (classes, interfaces, other arrays, etc.)
- FFI: Use Return<java::lang::Object> instead of jobject. This represents a (null?) JNI function call return value.
- A PrimitiveArray implementation.
- Represents an env.GetStringChars + env.GetStringLength query. Will automatically env.ReleaseStringChars when dropped.
- FFI: Use &VM instead of *const JavaVM. This represents a global, process-wide Java exection environment.
Traits§
- Marker trait indicating
Self
can be assigned toT
. - JNI bindings rely on this type being accurate.
- A Java Array of some POD-like type such as bool, jbyte, jchar, jshort, jint, jlong, jfloat, or jdouble.
- A marker type indicating this is a valid exception type that all exceptions thrown by java should be compatible with