Function ctrl_shutdown

Source
pub async fn ctrl_shutdown() -> Result<()>
Available on Windows only.
Expand description

Creates a new listener which receives “ctrl-shutdown” notifications sent to the process.