Function glib::unix_signal_stream [−][src]
pub fn unix_signal_stream(
signum: i32
) -> Pin<Box<dyn Stream<Item = ()> + Send + 'static>>
This is supported on Unix only.
Expand description
Create a Stream
that will provide a value whenever the given UNIX signal is raised
The Stream
must be spawned on an Executor
backed by a glib::MainContext
.