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§
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>
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.