Struct PluginEventEnvelope
pub struct PluginEventEnvelope { /* private fields */ }Expand description
A transient, host-stamped event submitted by one admitted plugin instance.
Construction is private so the instance identity can only come from the
host-owned PluginChannelEndpoint. The normalized message remains the
canonical payload passed into the shared channel lifecycle.
Implementations§
Source§impl PluginEventEnvelope
impl PluginEventEnvelope
Sourcepub fn instance_id(&self) -> &PluginInstanceId
pub fn instance_id(&self) -> &PluginInstanceId
Canonical logical instance that submitted this event.
Sourcepub fn message(&self) -> &ChannelMessage
pub fn message(&self) -> &ChannelMessage
Normalized message to dispatch through the existing channel lifecycle.
Sourcepub fn into_message(self) -> ChannelMessage
pub fn into_message(self) -> ChannelMessage
Consume the envelope and return its normalized message.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PluginEventEnvelope
impl RefUnwindSafe for PluginEventEnvelope
impl Send for PluginEventEnvelope
impl Sync for PluginEventEnvelope
impl Unpin for PluginEventEnvelope
impl UnsafeUnpin for PluginEventEnvelope
impl UnwindSafe for PluginEventEnvelope
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