nix::sys::reboot

Function set_cad_enabled

Source
pub fn set_cad_enabled(enable: bool) -> Result<()>
Expand description

Enable or disable the reboot keystroke (Ctrl-Alt-Delete).

Corresponds to calling reboot(RB_ENABLE_CAD) or reboot(RB_DISABLE_CAD) in C.