Module api

Module api 

Source
Expand description

Parent service API definitions.

This service provides the ability for child processes (renderers, etc.) to send messages to their parent process. Messages can be data plane references (for shared-memory transfers), control requests (like spawning a child), or status notifications.

Structs§

DataPlaneRef
A reference to shared memory data on the data plane.
MessageToParentRequest
Request to send a message to the parent process.
MessageToParentResponse
Response from sending a message to the parent.
MockParentMessenger
A mock parent messenger for testing.
ParentMessage
A message that can be sent from a child process to its parent.
ParentRequestContext
Minimal metadata about a child-to-parent request.
ProxyCallRequest
Request for the parent to proxy an IPC call to a specific child pid.
ProxyCallResponse
Response from a proxied IPC call.
ShutdownRequest
Shutdown request payload.
SpawnChildRequest
Request to spawn a child process owned by the requesting process.
SpawnChildResponse
Response from requesting a child spawn.

Enums§

ParentMessageKind
Kinds of messages that can be sent to a parent.

Constants§

METHOD_MESSAGE_PARENT
Method name for sending a message to the parent.
METHOD_PROXY_CALL
Method name for asking the parent to proxy an IPC call to one of the caller’s own child processes.
METHOD_REQUEST_SPAWN_CHILD
Method name for requesting that the parent spawn a child process.

Traits§

ParentMessenger
Trait for sending messages to the parent process.