Module polling_signals

Source

Structs§

IPCAtomicU64
A filesystem path based cross-process atomic counter
PollingSignals
A filesystem path based way to poll for ‘signals’. Cloning makes another receiver that checks independently from the original (but both receive the same ‘signals’).
PollingSignalsSender
Sending-only ‘end’ of a PollingSignals or SharedPollingSignals. Can be cloned to give yet another sending end.
SharedPollingSignals
A filesystem path based way to poll for ‘signals’. When receiving a signal, it has to be confirmed explicitly, and the confirmation is shared amongst all readers (usable for “work was done” on a ‘versioned’ input; the work confirmed refers to the version of the signal that was read; the confirmation with the highest signal value is stored). Note that multiple readers might start doing the same work at the same time. Cloning shares the same receiver and sender.
Signal
A received signal. This is a (dynamically-checked) ‘linear type’ value: it must be confirmed via confirm or ignore; dropping it panics!

Enums§

IPCAtomicError