Skip to main content

PluginEvent

Trait PluginEvent 

Source
pub trait PluginEvent:
    Send
    + Sync
    + Clone
    + Serialize
    + DeserializeOwned
    + 'static { }
Expand description

Event payload contract shared by all target plugin machinery.

Blanket-implemented for every type meeting the bounds; it exists solely to keep this composite bound spelled in one place instead of on every generic.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> PluginEvent for T
where T: Send + Sync + Clone + Serialize + DeserializeOwned + 'static,