Trait rustls_platform_verifier::android::Runtime

source ·
pub trait Runtime: Send + Sync {
    // Required methods
    fn java_vm(&self) -> &JavaVM;
    fn context(&self) -> &GlobalRef;
    fn class_loader(&self) -> &GlobalRef;
}
Available on Android only.
Expand description

A layer to access the Android runtime which is hosting the current application process.

Generally this trait should be implemented in your Rust app component’s FFI initialization layer.

Required Methods§

source

fn java_vm(&self) -> &JavaVM

Returns a handle to the current process’ JVM.

source

fn context(&self) -> &GlobalRef

Returns a reference to the current app’s Context.

source

fn class_loader(&self) -> &GlobalRef

Returns a reference to the class returned by the current JVM’s getClassLoader call.

Implementors§