pub enum PluginEvent {
PluginLoaded {
plugin_id: String,
},
PluginUnloaded {
plugin_id: String,
},
StateChanged {
plugin_id: String,
old_state: PluginState,
new_state: PluginState,
},
PluginError {
plugin_id: String,
error: String,
},
Custom {
plugin_id: String,
event_type: String,
data: Vec<u8>,
},
}Expand description
插件事件
Variants§
Trait Implementations§
Source§impl Clone for PluginEvent
impl Clone for PluginEvent
Source§fn clone(&self) -> PluginEvent
fn clone(&self) -> PluginEvent
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 PluginEvent
impl RefUnwindSafe for PluginEvent
impl Send for PluginEvent
impl Sync for PluginEvent
impl Unpin for PluginEvent
impl UnsafeUnpin for PluginEvent
impl UnwindSafe for PluginEvent
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