pub struct JavaScriptNativeInterface {}Implementations§
Source§impl JavaScriptNativeInterface
impl JavaScriptNativeInterface
pub fn new() -> Self
Sourcepub async fn call(
&mut self,
js_func_name: String,
args: Vec<JSNIValue>,
) -> Vec<JSNIValue>
pub async fn call( &mut self, js_func_name: String, args: Vec<JSNIValue>, ) -> Vec<JSNIValue>
Calls the JavaScript function. Must be set registers with uarguments to pass to the JavaScript function before calling this function. Returns a vector of results. The first register is the count of results, followed by the results themselves.
Auto Trait Implementations§
impl Freeze for JavaScriptNativeInterface
impl RefUnwindSafe for JavaScriptNativeInterface
impl Send for JavaScriptNativeInterface
impl Sync for JavaScriptNativeInterface
impl Unpin for JavaScriptNativeInterface
impl UnsafeUnpin for JavaScriptNativeInterface
impl UnwindSafe for JavaScriptNativeInterface
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