Struct jni::objects::GlobalRef [] [src]

pub struct GlobalRef { /* fields omitted */ }

A global JVM reference. These are "pinned" by the garbage collector and are guaranteed to not get collected until released. Thus, this is allowed to outlive the JNIEnv that it came from. Still can't cross thread boundaries since it requires a pointer to the JNIEnv to do anything useful with it.

Methods

impl GlobalRef
[src]

Create a new global reference object. This assumes that CreateGlobalRef has already been called.

Trait Implementations

impl Drop for GlobalRef
[src]

A method called when the value goes out of scope. Read more