rustls_platform_verifier::android

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