pub enum PluginLifecycleEvent<'run> {
TurnFinalized(Arc<AssembledTurn>),
TurnPersisted(Box<SessionStateChangedContext<'run>>),
SessionRestored(SessionReadView),
SessionConfigChanged(Box<SessionConfigChangedContext>),
}Variants§
TurnFinalized(Arc<AssembledTurn>)
TurnPersisted(Box<SessionStateChangedContext<'run>>)
Best-effort observer hook emitted after durable session state advances.
Hook failures are isolated from the foreground turn: the turn has already committed, and observers must not affect that commit.
SessionRestored(SessionReadView)
SessionConfigChanged(Box<SessionConfigChangedContext>)
Trait Implementations§
Source§impl<'run> Clone for PluginLifecycleEvent<'run>
impl<'run> Clone for PluginLifecycleEvent<'run>
Source§fn clone(&self) -> PluginLifecycleEvent<'run>
fn clone(&self) -> PluginLifecycleEvent<'run>
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 moreAuto Trait Implementations§
impl<'run> !RefUnwindSafe for PluginLifecycleEvent<'run>
impl<'run> !UnwindSafe for PluginLifecycleEvent<'run>
impl<'run> Freeze for PluginLifecycleEvent<'run>
impl<'run> Send for PluginLifecycleEvent<'run>
impl<'run> Sync for PluginLifecycleEvent<'run>
impl<'run> Unpin for PluginLifecycleEvent<'run>
impl<'run> UnsafeUnpin for PluginLifecycleEvent<'run>
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