|
rstd 0.1.0
|
The sending half of a synchronous (bounded) channel. More...
Public Member Functions | |
| auto | send (T msg) -> Result< empty, T > |
| Sends a value on this channel, blocking if the buffer is full. | |
| auto | try_send (T msg) -> Result< empty, T > |
| Attempts to send a value without blocking. | |
The sending half of a synchronous (bounded) channel.
Blocks when the buffer is full until space becomes available.
| T | The type of values sent through the channel. |
|
inlineexport |
Sends a value on this channel, blocking if the buffer is full.
| msg | The message to send. |
|
inlineexport |
Attempts to send a value without blocking.
| msg | The message to send. |