btdu.proto

Main process / subprocess communication protocol

Members

Aliases

AllMessages
alias AllMessages = AliasSeq!(StartMessage, NewRootMessage, ResultStartMessage, ResultInodeStartMessage, ResultInodeErrorMessage, ResultInodeEndMessage, ResultMessage, ResultErrorMessage, ResultEndMessage, FatalErrorMessage)
Undocumented in source.

Functions

parse
size_t parse(ubyte[] buf, H handler)

Decode received data. Returns how many bytes should be read before calling this function again. H should implement handleMessage(M) overloads for every M in AllMessages.

send
void send(T message)

Send a message from a subprocess to the main process.

Structs

Error
struct Error
Undocumented in source.
FatalErrorMessage
struct FatalErrorMessage
Undocumented in source.
Header
struct Header
Undocumented in source.
NewRootMessage
struct NewRootMessage
Undocumented in source.
ResultEndMessage
struct ResultEndMessage
Undocumented in source.
ResultErrorMessage
struct ResultErrorMessage
Undocumented in source.
ResultInodeEndMessage
struct ResultInodeEndMessage
Undocumented in source.
ResultInodeErrorMessage
struct ResultInodeErrorMessage
Undocumented in source.
ResultInodeStartMessage
struct ResultInodeStartMessage
Undocumented in source.
ResultMessage
struct ResultMessage
Undocumented in source.
ResultStartMessage
struct ResultStartMessage
Undocumented in source.
StartMessage
struct StartMessage
Undocumented in source.

Variables

sendBuf
FastAppender!ubyte sendBuf;
Undocumented in source.

Meta