Module spsc

Source
Expand description

A no-std Single Producer, Single Consumer channel for unidirectional message exchange between modules. This module don’t use anything from the standard lib and can be easily used in no-std environments. We only use mem::take from core.

Structs§

Channel
A (Send + Sync) single producer, single consumer channel to notify modules about things. The api is super minimalistic to reduce external dependencies, including from the std-lib
RecvIter
An iterator issued every time someone calls recv.