pub trait ProgramEventListener:
Send
+ Sync
+ 'static {
// Provided methods
fn did_async_preempt(&self, _scope: &HelperScope<'_, '_>) { ... }
fn did_yield(&self) { ... }
fn did_throttle(
&self,
_scope: &HelperScope<'_, '_>,
) -> Option<Pin<Box<dyn Future<Output = ()>>>> { ... }
fn did_save_shadow_stack(&self) { ... }
fn did_restore_shadow_stack(&self) { ... }
}Expand description
Hooks for observing program execution events.
Provided Methods§
Sourcefn did_async_preempt(&self, _scope: &HelperScope<'_, '_>)
fn did_async_preempt(&self, _scope: &HelperScope<'_, '_>)
Called after an async preemption is triggered.
Sourcefn did_throttle(
&self,
_scope: &HelperScope<'_, '_>,
) -> Option<Pin<Box<dyn Future<Output = ()>>>>
fn did_throttle( &self, _scope: &HelperScope<'_, '_>, ) -> Option<Pin<Box<dyn Future<Output = ()>>>>
Called after throttling a program’s execution.
Sourcefn did_save_shadow_stack(&self)
fn did_save_shadow_stack(&self)
Called after saving the shadow stack before yielding.
Sourcefn did_restore_shadow_stack(&self)
fn did_restore_shadow_stack(&self)
Called after restoring the shadow stack on resume.