Skip to main content

with_injected_event_scope

Function with_injected_event_scope 

Source
pub fn with_injected_event_scope<R>(f: impl FnOnce() -> R) -> R
Expand description

Marks a call stack as delivering a synthetic event owned by tooling/runtime plumbing.

Consumers that normally ignore external input while scripted playback is active can use in_injected_event_scope to distinguish those synthetic deliveries from real platform input.