Skip to main content

Module host_call

Module host_call 

Source

Structs§

BridgeCallContext
Context for sync-blocking bridge calls from a V8 session.
BridgeCallRegistry
Bounded call-specific response registry shared by all sessions.
ChannelRuntimeEventSender
Sends frames via a crossbeam channel to a dedicated writer thread. Maintains a reusable frame buffer that grows to high-water mark, avoiding per-call allocation for frame construction.
PreparedAsyncBridgeCall
ReaderBridgeResponseReceiver
ResponseReceiver that reads frames from a byte buffer via ipc_binary::read_frame. Used by tests and any code that has a pre-serialized byte stream.
SyncBridgeCallResponse
WriterRuntimeEventSender
Sends frames directly to a Write impl (used by tests).

Traits§

BridgeResponseReceiver
Trait for receiving a BridgeResponse directly without re-serialization. Production code uses a channel-based implementation; tests use a buffer-based one.
RuntimeEventSender
Trait for sending serialized frames to the host without holding a shared mutex. Production code uses ChannelRuntimeEventSender (lock-free MPSC); tests use WriterRuntimeEventSender.

Type Aliases§

CallIdRouter
Compatibility name retained while callers migrate from the old call_id-to-session map to direct call-specific settlement.
SharedCallIdCounter
Shared call_id counter type. Sessions sharing a CallIdRouter must use the same counter to prevent call_id collisions that cause BridgeResponses to be delivered to the wrong session.