Module fibers::sync::oneshot [−][src]
Oneshot communication channels between two peers.
Note
Unlike fibers::net
module, the structures in this module
can be used on both inside and outside of a fiber.
Implementation Details
The channels provided in this module are specializations of
the asynchronous channel in the fibers::sync::mpsc
module.
The former essentially have the same semantics as the latter. But those are useful to clarify the intention of programmers.
Structs
Link |
The half of a link channel. |
Monitor |
The monitoring-half of a monitor channel. |
Monitored |
The monitored-half of a monitor channel. |
Receiver |
The receiving-half of a oneshot channel. |
Sender |
The sending-half of an asynchronous oneshot channel. |
Enums
MonitorError |
The reason that a monitored peer has not completed successfully. |
Functions
channel |
Creates a new asynchronous oneshot channel, returning the sender/receiver halves. |
link |
Creates a oneshot channel for bidirectional monitoring. |
monitor |
Creates a oneshot channel for unidirectional monitoring. |
Type Definitions
LinkPair |
Bidirectional link pair. |