pub struct PluginHandle<R: Runtime> { /* private fields */ }Expand description
A handle to a plugin.
Implementations§
source§impl<R: Runtime> PluginHandle<R>
impl<R: Runtime> PluginHandle<R>
sourcepub fn run_mobile_plugin<T: DeserializeOwned>(
&self,
command: impl AsRef<str>,
payload: impl Serialize,
) -> Result<T, PluginInvokeError>
pub fn run_mobile_plugin<T: DeserializeOwned>( &self, command: impl AsRef<str>, payload: impl Serialize, ) -> Result<T, PluginInvokeError>
Executes the given mobile command.
Trait Implementations§
source§impl<R: Runtime> Clone for PluginHandle<R>
impl<R: Runtime> Clone for PluginHandle<R>
Auto Trait Implementations§
impl<R> Freeze for PluginHandle<R>
impl<R> !RefUnwindSafe for PluginHandle<R>
impl<R> Send for PluginHandle<R>
impl<R> Sync for PluginHandle<R>
impl<R> Unpin for PluginHandle<R>
impl<R> !UnwindSafe for PluginHandle<R>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)