Skip to main content

Module reactor

Module reactor 

Source
Expand description

Code to handle incoming cells on a channel.

The role of this code is to run in a separate asynchronous task, and routes cells to the right circuits.

TODO: I have zero confidence in the close-and-cleanup behavior here, or in the error handling behavior.

Structsยง

CreateRequestHandlerAndData ๐Ÿ”’
If the channel is configured to handle CREATE* requests, this contains anything that is needed solely for this purpose.
Reactor
Object to handle incoming cells and background tasks on a channel.
SpecialOutgoing ๐Ÿ”’
Outgoing cells introduced at the channel reactor

Enumsยง

CtrlMsg
A message telling the channel reactor to do something.

Type Aliasesยง

BoxedChannelSink ๐Ÿ”’
A boxed trait object that can sink ChanCells.
BoxedChannelStream ๐Ÿ”’
A boxed trait object that can provide ChanCells.
BoxedChannelStreamOps ๐Ÿ”’
A boxed trait object that can provide additional StreamOps on a BoxedChannelStream.
ChannelOutputSink ๐Ÿ”’
Type used by a channel reactor to send cells to the network.
ReactorResultChannel ๐Ÿ”’
The type of a oneshot channel used to inform reactor users of the result of an operation.