#[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. Event buffers are borrowed during fan-out: handlers must not
free them or retain their pointers. The host frees them after all handlers
return. Use events::EventView to retain owned payload copies.
Fields§
§tag: EventTag§payload: EventPayloadImplementations§
Source§impl StablePluginEvent
impl StablePluginEvent
Trait Implementations§
Source§impl Clone for StablePluginEvent
impl Clone for StablePluginEvent
impl 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