Skip to main content

install_ctrlc_handler

Function install_ctrlc_handler 

Source
pub fn install_ctrlc_handler(app: &App)
Expand description

Install the process CTRL+C handler that cancels the app’s shutdown token, so the render loop exits cleanly. Panics if a handler is already installed; only one entry point installs it per process.