pub struct JniSingleton { /* private fields */ }Implementations§
Source§impl 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§
Source§impl Clone for JniSingleton
impl Clone for JniSingleton
Source§fn clone(&self) -> JniSingleton
fn clone(&self) -> JniSingleton
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for JniSingleton
impl RefUnwindSafe for JniSingleton
impl Send for JniSingleton
impl Sync for JniSingleton
impl Unpin for JniSingleton
impl UnwindSafe for JniSingleton
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more