Expand description
One-Shot Channels
Often, clients of drivers only want to process one βin-flightβ message at a time. If request pipelining is not required, then a One-Shot Channel is an easy way to perform an async/await request/response cycle.
Structs§
- Inner πAn inner type shared between the Rosc and Sender.
- A reusable One-Shot channel.
- A single-use One-Shot channel sender
Enums§
Constants§
- ROSC_CLOSED πThe receiver has been manually closed or dropped.
- ROSC_IDLE πNot waiting for anything.
- ROSC_READING πReading has already started
- ROSC_READY πThe Sender has been dropped and the message has been send
- ROSC_WAITING πA Sender has been created, but no writes have begun yet
- ROSC_WRITING πA Sender has begun writing, and will be dropped shortly.