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§

  • 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.