pub struct SignalsInfo<E: Exfiltrator = SignalOnly>(/* private fields */);
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§
Source§impl<E: Exfiltrator> SignalsInfo<E>
impl<E: Exfiltrator> SignalsInfo<E>
Sourcepub fn new<I, S>(signals: I) -> Result<Self, Error>
pub fn new<I, S>(signals: I) -> Result<Self, Error>
Create a SignalsInfo
instance.
This registers all the signals listed. The same restrictions (panics, errors) apply
as with Handle::add_signal
.
Sourcepub fn with_exfiltrator<I, S>(signals: I, exfiltrator: E) -> Result<Self, Error>
pub fn with_exfiltrator<I, S>(signals: I, exfiltrator: E) -> Result<Self, Error>
A constructor with explicit exfiltrator.
Trait Implementations§
Source§impl<E: Exfiltrator> Stream for SignalsInfo<E>
Available on crate feature futures-v0_3
only.
impl<E: Exfiltrator> Stream for SignalsInfo<E>
Available on crate feature
futures-v0_3
only.Auto Trait Implementations§
impl<E = SignalOnly> !Freeze for SignalsInfo<E>
impl<E = SignalOnly> !RefUnwindSafe for SignalsInfo<E>
impl<E> Send for SignalsInfo<E>
impl<E> Sync for SignalsInfo<E>
impl<E> Unpin for SignalsInfo<E>
impl<E = SignalOnly> !UnwindSafe for SignalsInfo<E>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more