Struct pulse::Signal [] [src]

pub struct Signal { /* fields omitted */ }

A Signal represents listens for a pulse to occur in the system. A Signal has one of three states. Pending, Pulsed, or Errored. Pending means the pulse has not fired, but still exists. Pulsed meaning the pulse has fired, and no longer exists. Errored means the pulse was dropped without firing. This normally means a programming error of some sort.

Methods

impl Signal
[src]

Create a Signal and a Pulse that are associated.

Create a signal that is already pulsed

Read out the state of the Signal

Check to see if the signal is pending. A signal

This is a unique id that can be used to identify the signal from others See Select for how this api is useful.

Block the current thread until a pulse is ready. This will block indefinably if the pulse never fires.

Block until either the pulse is sent, or the timeout is reached

Trait Implementations

impl Send for Signal
[src]

impl Sync for Signal
[src]

impl Debug for Signal
[src]

Formats the value using the given formatter.

impl Clone for Signal
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Drop for Signal
[src]

A method called when the value goes out of scope. Read more

impl IntoRawPtr for Signal
[src]

impl FromRawPtr for Signal
[src]