MCPcopy Create free account
hub / github.com/astonbitecode/j4rs / get_thread_local_env

Function get_thread_local_env

rust/src/cache.rs:391–396  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

389}
390
391pub(crate) fn get_thread_local_env() -> errors::Result<*mut JNIEnv> {
392 match get_thread_local_env_opt() {
393 Some(env) => Ok(env),
394 None => Err(errors::J4RsError::JavaError("Could not find the JNIEnv in the thread local".to_string())),
395 }
396}
397
398pub(crate) fn set_jni_get_method_id(j: Option<JniGetMethodId>) -> Option<JniGetMethodId> {
399 debug("Called set_jni_get_method_id");

Callers 6

newMethod · 0.85
try_fromMethod · 0.85
from_jobjectMethod · 0.85
_weak_refMethod · 0.85
try_fromMethod · 0.85

Calls 2

get_thread_local_env_optFunction · 0.85
to_stringMethod · 0.80

Tested by

no test coverage detected