Expand description
Interface to the select mechanism.
Structsยง
- Operation
- Identifier associated with an operation by a specific thread on a specific channel.
- Select
- Selects from a set of channel operations.
- Selected
Operation - A selected operation that needs to be completed.
- Token
- Temporary data that gets initialized during select or a blocking operation, and is consumed by
read
orwrite
.
Enumsยง
- Selected
- Current state of a select or a blocking operation.
- Timeout ๐
- Determines when a select operation should time out.
Traitsยง
- Select
Handle - 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.
- select
- 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.
- select_
timeout - Blocks for a limited time until one of the operations becomes ready and selects it.
- try_
select - Attempts to select one of the operations without blocking.