[][src]Function tokio::net::signal::ctrl_c

pub fn ctrl_c() -> Result<CtrlC, Error>

Creates a new stream which receives "ctrl-c" notifications sent to the process.

This function binds to the default reactor.