Skip to main content

Module routes

Module routes 

Source
Expand description

The effect handling “lanes” an EffectRouter can dispatch to.

Each route handles a category of effects in a particular way:

  • Serialized is the default, bridge-like lane that exchanges bytes with the shell.
  • Parked holds requests under an EffectId for a custom, user-owned FFI carrying opaque or non-serializable data.
  • Buffer collects requests for the caller to drain and handle in process.

Structs§

Buffer
A route that simply collects requests for the caller to drain and handle.
Parked
A route for effects handled over a custom, user-owned FFI.
Serialized
The default route, reproducing the standard Bridge behaviour on top of the EffectRouter.