ctrl_shutdown

Function ctrl_shutdown 

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

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