Expand description
Shared protocol types for the browser-controller system.
This crate defines the data types used in communication between:
- The CLI and the mediator (over Unix Domain Socket, newline-delimited JSON)
- The mediator and the Firefox extension (via native messaging, length-prefixed JSON)
Structs§
- Browser
Info - Information about a running browser instance.
- CliRequest
- A request sent from the CLI to the mediator.
- CliResponse
- A response sent from the mediator to the CLI.
- Extension
Hello - Initial hello message sent from the Firefox extension to the mediator upon connection.
- TabDetails
- Full details about a browser tab.
- TabSummary
- A brief summary of a tab, suitable for embedding in window listings.
- Window
Summary - A summary of a browser window including its tabs.
Enums§
- Browser
Event - An event emitted by the browser extension and broadcast to all event-stream subscribers.
- CliCommand
- A command sent from the CLI to the mediator, and forwarded to the extension.
- CliOutcome
- The outcome of a command: either a successful result or an error message.
- CliResult
- The result payload of a successful command.
- Extension
Message - A message received by the mediator from the Firefox extension via native messaging.
- TabStatus
- The loading status of a tab.
- Window
State - The visual state of a browser window.