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.