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§
- Data
Plane Ref - A reference to shared memory data on the data plane.
- Message
ToParent Request - Request to send a message to the parent process.
- Message
ToParent Response - Response from sending a message to the parent.
- Mock
Parent Messenger - A mock parent messenger for testing.
- Parent
Message - A message that can be sent from a child process to its parent.
- Parent
Request Context - Minimal metadata about a child-to-parent request.
- Proxy
Call Request - Request for the parent to proxy an IPC call to a specific child pid.
- Proxy
Call Response - Response from a proxied IPC call.
- Shutdown
Request - Shutdown request payload.
- Spawn
Child Request - Request to spawn a child process owned by the requesting process.
- Spawn
Child Response - Response from requesting a child spawn.
Enums§
- Parent
Message Kind - 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§
- Parent
Messenger - Trait for sending messages to the parent process.