Skip to main content

ctrl_shutdown

Function ctrl_shutdown 

Source
pub async fn ctrl_shutdown() -> Result<(), Error>
Available on Windows and crate feature signal only.
Expand description

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