pub struct PluginHandle { /* private fields */ }Expand description
Handle to a loaded plugin for safe concurrent access.
Implementations§
Source§impl PluginHandle
impl PluginHandle
Sourcepub fn state(&self) -> LifecycleState
pub fn state(&self) -> LifecycleState
Get the plugin state.
Sourcepub fn call(&self, function: &str, args: &[Value]) -> Result<Value>
pub fn call(&self, function: &str, args: &[Value]) -> Result<Value>
Call a function on the plugin.
Sourcepub fn info(&self) -> PluginInfo
pub fn info(&self) -> PluginInfo
Get plugin info.
Sourcepub fn has_export(&self, name: &str) -> bool
pub fn has_export(&self, name: &str) -> bool
Check if the plugin exports a function.
Trait Implementations§
Source§impl Clone for PluginHandle
impl Clone for PluginHandle
Source§fn clone(&self) -> PluginHandle
fn clone(&self) -> PluginHandle
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 PluginHandle
impl !RefUnwindSafe for PluginHandle
impl Send for PluginHandle
impl Sync for PluginHandle
impl Unpin for PluginHandle
impl !UnwindSafe for PluginHandle
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