1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! Windows sleep inhibitor — prevents the OS from sleeping during active
//! inference or tool execution. Uses `SetThreadExecutionState` with
//! `ES_SYSTEM_REQUIRED` so the system stays awake without forcing the display on.
//!
//! On non-Windows platforms this is a zero-cost no-op struct.
//!
//! Usage: create a `SleepInhibitor` at the start of a model turn; it
//! automatically restores normal power policy when it drops.
pub use SleepInhibitor;