Expand description
A bounded mailbox for one producer and one consumer.
The mailbox uses only safe Rust atomic operations. Its storage does not allocate after construction. The built-in player-control codec also does not allocate. A full mailbox rejects the incoming value and keeps all accepted values in order.
Structs§
- Spsc
Consumer - The only consumer endpoint for a mailbox.
- Spsc
Counters - Counters can wrap after
usize::MAXoperations. - Spsc
Producer - The only producer endpoint for a mailbox.
- Timed
Player Control Codec
Enums§
- Spsc
Commit Error - Spsc
Commit Outcome - Spsc
Create Error - Spsc
PopError - Spsc
Push Error - A rejected push returns ownership of the incoming value.
Constants§
Traits§
- Spsc
Codec - Converts one value to and from a fixed-size atomic payload.
Functions§
- spsc_
mailbox - Creates one bounded mailbox and its two unique endpoints.
- timed_
player_ control_ mailbox