Struct pulse::Pulse [] [src]

pub struct Pulse { /* fields omitted */ }

A Pulse is represents an unfired signal. It is the tx side of Signal A Pulse can only purpose it to be fired, and then it will be moved as to never allow it to fire again. Dropping a pulse will pulse The signal, but the signal will enter an error state.

Methods

impl Pulse
[src]

Create a Pulse from a usize. This is naturally unsafe.

Convert a trigger to a usize, This is unsafe and it will kill your kittens if you are not careful

Pulse the pulse which will transition the Signal out from pending to ready. This moves the pulse so that it can only be fired once.

Trait Implementations

impl Send for Pulse
[src]

impl Sync for Pulse
[src]

impl Debug for Pulse
[src]

Formats the value using the given formatter.

impl Drop for Pulse
[src]

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

impl IntoRawPtr for Pulse
[src]

impl FromRawPtr for Pulse
[src]