Expand description
Enum wrappers to be able to select different channel implementations at runtime.
Modulesยง
- callback ๐
- Generic Callbacks
- generic_
channelset ๐ - lazy_
callback ๐ - Lazy Callbacks
- oneshot ๐
- shared_
memory ๐
Structsยง
- Callback
Setter - Generic
Callback - A mechanism to run a callback in the process this callback was constructed in.
- Generic
Oneshot Receiver - The oneshot receiver struct
- Generic
Oneshot Sender - The oneshot sender struct
- Generic
Receiver - Generic
Receiver Set - A GenericReceiverSet. Allows you to wait on multiple GenericReceivers. Automatically selects either Ipc or crossbeam depending on multiprocess mode.
- Generic
Receiver ๐Visitor - Generic
Sender - A GenericSender that sends messages to a GenericReceiver.
- Generic
Sender ๐Visitor - Generic
Shared Memory - Lazy
Callback - Basic struct for LazyCallback
Enumsยง
- Generic
Receiver ๐Variants - Generic
Selection Result - Result for readable events returned from GenericReceiverSet::select.
- Generic
Sender ๐Variants - The actual GenericSender variant.
- Receive
Error - Send
Error - TryReceive
Error
Staticsยง
- USE_IPC ๐
- Cache for being in Ipc Mode
Traitsยง
- Generic
Send - 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.
- lazy_
callback - A LazyCallback is a Callback that will be initialized at a later date. We return the โLazyCallbackโ which is a GenericCallback. We also return a โCallbackSetterโ where the callback can be set at a later date.
- new_
generic_ ๐channel_ crossbeam - Private helper function to create a crossbeam based channel.
- new_
generic_ ๐channel_ ipc - oneshot
- Creates a oneshot generic channel. This channel allows only a fixed capacity and might have other optimizations. The send and receive methods will consume the Sender/Receiver. We will automatically select ipc or crossbeam channels.
- serialize_
generic_ ๐sender_ variants - to_
receive_ result - use_ipc ๐
- Return if we should be in IPC Mode