Module kernel::comms::oneshot

source ·
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§

  • The receiver has been manually closed or dropped.
  • ROSC_IDLE 🔒
    Not waiting for anything.
  • Reading has already started
  • ROSC_READY 🔒
    The Sender has been dropped and the message has been send
  • A Sender has been created, but no writes have begun yet
  • A Sender has begun writing, and will be dropped shortly.