Skip to main content

Module channel

Module channel 

Source
Expand description

Side channels: the only way a plugin reaches the outside world.

A plugin never opens a file. At build time it describes the sink it wants and receives an opaque ChannelId. At run time it queues writes against that id. The host owns the file descriptor, dedupes identical targets so two plugins pointing at the same path share one buffered writer, and can refuse a target outright (see stdout, below).

Structs§

ChannelId
Opaque handle to a host-owned side channel.

Enums§

ChannelTarget
Where a side channel points.

Traits§

HostBuilder
Implemented by the host. Handed to plugins during construction only.