Module postage::oneshot [−][src]
Oneshot channels transmit a single value between a sender and a reciever.
Neither can be cloned. If the sender drops, the receiver recieves a None
value.
Structs
Receiver | The receiver half of a oneshot channel. Can recieve a single message (or none if the sender drops) with the postage::Stream trait. |
Sender | The sender half of a oneshot channel. Can transmit a single message with the postage::Sink trait. |
Functions
channel | Constructs a pair of oneshot endpoints |