Module crossbeam_channel::select

source ยท
Expand description

Interface to the select mechanism.

Structsยง

  • Identifier associated with an operation by a specific thread on a specific channel.
  • Selects from a set of channel operations.
  • A selected operation that needs to be completed.
  • Temporary data that gets initialized during select or a blocking operation, and is consumed by read or write.

Enumsยง

  • Current state of a select or a blocking operation.
  • Timeout ๐Ÿ”’
    Determines when a select operation should time out.

Traitsยง

  • A receiver or a sender that can participate in select.

Functionsยง

  • run_ready ๐Ÿ”’
    Runs until one of the operations becomes ready, potentially blocking the current thread.
  • run_select ๐Ÿ”’
    Runs until one of the operations is selected, potentially blocking the current thread.
  • Blocks until one of the operations becomes ready and selects it.
  • select_deadline ๐Ÿ”’
    Blocks until a given deadline, or until one of the operations becomes ready and selects it.
  • Blocks for a limited time until one of the operations becomes ready and selects it.
  • Attempts to select one of the operations without blocking.