[][src]Struct signal_hook::iterator::Async

pub struct Async { /* fields omitted */ }

An asynchronous stream of registered signals.

It is created by converting Signals. See Signals::into_async.

Cloning

If you register multiple signals, then create multiple Signals instances by cloning and convert them to Async, one of them can „steal“ wakeups for several signals at once. This one will produce the signals while the others will be silent.

This has an effect if the one consumes them slowly or is dropped after the first one.

It is recommended not to clone the Signals instances and keep just one Async stream around.

Implementations

impl Async[src]

pub fn new(signals: Signals, handle: &Handle) -> Result<Self, Error>[src]

Creates a new Async.

Trait Implementations

impl Debug for Async[src]

impl Stream for Async[src]

type Item = c_int

The type of item this stream will yield on success.

type Error = Error

The type of error this stream may generate.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.