Struct crossbow_android::plugin::JniSingleton
source · [−]pub struct JniSingleton { /* private fields */ }Implementations
sourceimpl JniSingleton
impl JniSingleton
pub fn new(name: &str, instance: GlobalRef, receiver: Receiver<Signal>) -> Self
pub fn get_instance(&self) -> JObject<'_>
pub fn get_name(&self) -> &str
pub fn get_receiver(&self) -> &Receiver<Signal>
pub fn get_method(&self, name: &str) -> Option<&JniSingletonMethod>
pub fn get_methods(&self) -> &HashMap<String, JniSingletonMethod>
pub fn call_method<'a>(
&'a self,
env: &'a JNIEnv<'_>,
name: &str,
args: &[JValue<'_>]
) -> Result<JValue<'a>>
Trait Implementations
sourceimpl Clone for JniSingleton
impl Clone for JniSingleton
sourcefn clone(&self) -> JniSingleton
fn clone(&self) -> JniSingleton
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl RefUnwindSafe for JniSingleton
impl Send for JniSingleton
impl Sync for JniSingleton
impl Unpin for JniSingleton
impl UnwindSafe for JniSingleton
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more