Module generic_channel

Source
Expand description

Enum wrappers to be able to select different channel implementations at runtime.

ModulesΒ§

callback πŸ”’
Generic Callbacks

StructsΒ§

GenericCallback
A mechanism to run a callback in the process this callback was constructed in.
GenericReceiver
GenericReceiverVisitor πŸ”’
GenericSender
A GenericSender that sends messages to a GenericReceiver.
GenericSenderVisitor πŸ”’

EnumsΒ§

GenericReceiverVariants πŸ”’
GenericSenderVariants πŸ”’
The actual GenericSender variant.
ReceiveError
SendError
TryReceiveError

TraitsΒ§

GenericSend
Abstraction of the ability to send a particular type of message cross-process. This can be used to ease the use of GenericSender sub-fields.

FunctionsΒ§

channel
Creates a Servo channel that can select different channel implementations based on multiprocess mode or not. If the scenario doesn’t require message to pass process boundary, a simple crossbeam channel is preferred.
new_generic_channel_crossbeam πŸ”’
Private helper function to create a crossbeam based channel.
new_generic_channel_ipc πŸ”’
to_receive_result

Type AliasesΒ§

ReceiveResult
RoutedReceiver
RoutedReceiverReceiveResult
SendResult
TryReceiveResult