Expand description
Requests and events between an app and a plugin: one JSON object per line (from lumen’s model
plugins). The app writes a request (an object with a "request" tag) to the program’s stdin;
the program answers on its stdout with Events: progress any number of times, then
exactly one done or error. Large data (images, masks, signals) travels as files named in
the request, never through JSON.
Every plugin answers the core requests (CoreRequest); an app adds its own (lumen’s
segment, instances) as any serializable type with a "request" tag.
Enums§
- Core
Request - The requests every plugin answers.
- Event
- What a plugin answers.
Constants§
- PROTOCOL
- The protocol version this crate speaks. A plugin states the one it speaks in its manifest
(
crate::plugin::PluginInfo::protocol); the app refuses one that differs (the handshake).