pub struct Pulse { /* private fields */ }
Expand description
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.
Implementations§
Source§impl Pulse
impl Pulse
Sourcepub unsafe fn cast_from_usize(ptr: usize) -> Pulse
pub unsafe fn cast_from_usize(ptr: usize) -> Pulse
Create a Pulse from a usize. This is naturally unsafe.
Sourcepub unsafe fn cast_to_usize(self) -> usize
pub 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
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pulse
impl !RefUnwindSafe for Pulse
impl Unpin for Pulse
impl !UnwindSafe for Pulse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more