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 async fn run_mobile_plugin_async<T: DeserializeOwned>(
&self,
command: impl AsRef<str>,
payload: impl Serialize,
) -> Result<T, PluginInvokeError>
Available on mobile only.
pub async fn run_mobile_plugin_async<T: DeserializeOwned>( &self, command: impl AsRef<str>, payload: impl Serialize, ) -> Result<T, PluginInvokeError>
mobile only.Executes the given mobile command. This is an async optimized variant of run_mobile_plugin
Sourcepub fn run_mobile_plugin<T: DeserializeOwned>(
&self,
command: impl AsRef<str>,
payload: impl Serialize,
) -> Result<T, PluginInvokeError>
Available on mobile only.
pub fn run_mobile_plugin<T: DeserializeOwned>( &self, command: impl AsRef<str>, payload: impl Serialize, ) -> Result<T, PluginInvokeError>
mobile only.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> !RefUnwindSafe for PluginHandle<R>
impl<R> !UnwindSafe for PluginHandle<R>
impl<R> Freeze for PluginHandle<R>
impl<R> Send for PluginHandle<R>
impl<R> Sync for PluginHandle<R>
impl<R> Unpin for PluginHandle<R>
impl<R> UnsafeUnpin for PluginHandle<R>where
AppHandle<R>: UnsafeUnpin,
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