Trait HasJavaVm

Source
pub trait HasJavaVm {
    // Required method
    fn java_vm(&self) -> &JavaVM;

    // Provided method
    fn check_for_exception<T, F>(&self, f: F) -> Result<T, AndroidKeyringError>
       where F: FnOnce(&mut JNIEnv<'_>) -> Result<T, AndroidKeyringError> { ... }
}

Required Methods§

Source

fn java_vm(&self) -> &JavaVM

Provided Methods§

Source

fn check_for_exception<T, F>(&self, f: F) -> Result<T, AndroidKeyringError>
where F: FnOnce(&mut JNIEnv<'_>) -> Result<T, AndroidKeyringError>,

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§