pub struct LoadedPlugin {
pub id: PluginId,
pub manifest: PluginManifest,
/* private fields */
}Expand description
A loaded plugin handle — returned by PluginRuntime::load.
Fields§
§id: PluginId§manifest: PluginManifestImplementations§
Source§impl LoadedPlugin
impl LoadedPlugin
Sourcepub async fn setup(&self, hc: HomeCore) -> Result<(), PluginError>
pub async fn setup(&self, hc: HomeCore) -> Result<(), PluginError>
Delegate to the inner plugin’s setup method.
Sourcepub async fn unload(&self) -> Result<(), PluginError>
pub async fn unload(&self) -> Result<(), PluginError>
Delegate to the inner plugin’s unload method.
Sourcepub async fn state_changed(
&self,
event: &StateChangedEventJson,
) -> Result<(), PluginError>
pub async fn state_changed( &self, event: &StateChangedEventJson, ) -> Result<(), PluginError>
Dispatch a committed state change to this plugin.
Auto Trait Implementations§
impl !RefUnwindSafe for LoadedPlugin
impl !UnwindSafe for LoadedPlugin
impl Freeze for LoadedPlugin
impl Send for LoadedPlugin
impl Sync for LoadedPlugin
impl Unpin for LoadedPlugin
impl UnsafeUnpin for LoadedPlugin
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