Struct signal_hook_tokio::SignalsInfo [−][src]
pub struct SignalsInfo<E: Exfiltrator = SignalOnly>(_);
Expand description
An asynchronous Stream
of arriving signals.
The stream doesn’t return the signals in the order they were recieved by the process and may merge signals received multiple times.
Implementations
Create a SignalsInfo
instance.
This registers all the signals listed. The same restrictions (panics, errors) apply
as with Handle::add_signal
.
pub fn with_exfiltrator<I, S>(signals: I, exfiltrator: E) -> Result<Self, Error> where
I: IntoIterator<Item = S>,
S: Borrow<c_int>,
pub fn with_exfiltrator<I, S>(signals: I, exfiltrator: E) -> Result<Self, Error> where
I: IntoIterator<Item = S>,
S: Borrow<c_int>,
A constructor with explicit exfiltrator.