Trait JNIEnvUtils

Source
pub trait JNIEnvUtils {
    // Required methods
    fn j_throw_cause(&mut self, j_class: JExceptionClass, cause: &impl Error);
    fn j_throw(&mut self, j_class: JExceptionClass);
    fn j_throw_msg(&mut self, message: &str);
    fn j_throw_exception(&mut self, ex: JException);
    fn get_string_owned(&mut self, jstring: &JString<'_>) -> Result<String>;
}

Required Methods§

Source

fn j_throw_cause(&mut self, j_class: JExceptionClass, cause: &impl Error)

Source

fn j_throw(&mut self, j_class: JExceptionClass)

Source

fn j_throw_msg(&mut self, message: &str)

Source

fn j_throw_exception(&mut self, ex: JException)

Source

fn get_string_owned(&mut self, jstring: &JString<'_>) -> Result<String>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'local> JNIEnvUtils for JNIEnv<'local>