Module protocol

Module protocol 

Source
Expand description

IPC protocol messages for Venus worker processes.

Uses length-prefixed rkyv messages over stdin/stdout. Format: 4-byte length (u32 LE) + rkyv-encoded message.

Enums§

ArchivedWorkerCommand
An archived WorkerCommand
ArchivedWorkerResponse
An archived WorkerResponse
WorkerCommand
Command sent from parent to worker process.
WorkerCommandResolver
The resolver for an archived WorkerCommand
WorkerResponse
Response sent from worker to parent process.
WorkerResponseResolver
The resolver for an archived WorkerResponse

Functions§

read_message
Read a message from a reader using length-prefixed rkyv encoding.
write_message
Write a message to a writer using length-prefixed rkyv encoding.