#[repr(C)]pub struct StablePluginEvent {
pub tag: EventTag,
pub payload: EventPayload,
}Expand description
One event dispatched to a plugin handler. The host translates its native
AgentEvent / HarnessEvent into this and calls every registered handler
for the tag (dispatch wrapped in catch_unwind). Ownership of the
StbStrings passes to the handler; the handler frees them via the host’s
free_string.
Fields§
§tag: EventTag§payload: EventPayloadImplementations§
Source§impl StablePluginEvent
impl StablePluginEvent
Trait Implementations§
Source§impl Clone for StablePluginEvent
impl Clone for StablePluginEvent
Source§fn clone(&self) -> StablePluginEvent
fn clone(&self) -> StablePluginEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StablePluginEvent
Auto Trait Implementations§
impl Freeze for StablePluginEvent
impl RefUnwindSafe for StablePluginEvent
impl Send for StablePluginEvent
impl Sync for StablePluginEvent
impl Unpin for StablePluginEvent
impl UnsafeUnpin for StablePluginEvent
impl UnwindSafe for StablePluginEvent
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