Skip to main content

Module proto_oneshot

Module proto_oneshot 

Source
Expand description

oneshot channel between a circuit control message handler and the main code

Wraps up a oneshot and deals with some error handling.

Used by connect

Structsยง

Receiver ๐Ÿ”’
Receiver for awaiting the protocol message when the circuit handler sends it
Sender ๐Ÿ”’
Sender, owned by the circuit message handler

Functionsยง

channel ๐Ÿ”’
Create a new proto_oneshot::Sender and proto_oneshot::Receiver