Expand description
Power management.
Enums§
- Exit
Code - An exit code that denotes the reason for restarting or powering off.
Functions§
- inject_
poweroff_ handler - Injects a handler that can power off the system.
- inject_
restart_ handler - Injects a handler that can restart the system.
- poweroff
- Powers off the system.
- restart
- Restarts the system.