Module channel_manager

Module channel_manager 

Source
Expand description

Channel Manager - manages all channel state in a dedicated garbage-collected block

This module provides a singleton ChannelManager that can be accessed from multiple threads. It has its own Block and manages its roots manually using the Heap. All channel operations go through this manager, allowing proper garbage collection of in-transit objects.

Structsยง

ChannelData ๐Ÿ”’
Data for a single channel stored in the manager
ChannelManager ๐Ÿ”’
The channel manager state
ChannelState ๐Ÿ”’
State for a single channel, with synchronization
GcState ๐Ÿ”’
GC state for the channel manager, all guarded by a single Mutex to prevent deadlocks

Enumsยง

RecvError ๐Ÿ”’
Error type for receive operations
SendError ๐Ÿ”’
Error type for send operations

Staticsยง

CHANNEL_MANAGER ๐Ÿ”’
Global singleton channel manager

Functionsยง

get_manager ๐Ÿ”’
Get a reference to the global channel manager

Type Aliasesยง

ChannelId ๐Ÿ”’
Unique identifier for a channel