[][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.


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.


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

impl !RefUnwindSafe for Async

impl Send for Async

impl Sync for Async

impl Unpin for Async

impl !UnwindSafe for Async

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.