Function ctrl_logoff

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

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