Struct pulse::Pulse [] [src]

pub struct Pulse {
    // some 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]

unsafe fn cast_from_usize(ptr: usize) -> Pulse

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

unsafe fn cast_to_usize(self) -> usize

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

fn pulse(self)

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]

fn fmt(&self, f: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.

impl Drop for Pulse
[src]

fn drop(&mut self)

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

impl IntoRawPtr for Pulse
[src]

unsafe fn into_raw(self) -> *mut ()

impl FromRawPtr for Pulse
[src]

unsafe fn from_raw(ptr: *mut ()) -> Pulse