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 browser 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.
- Container
Info - Information about a Firefox container (contextual identity).
- Cookie
Store Id - Firefox container (cookie store) identifier.
- Download
Id - Browser-assigned download identifier.
- Download
Item - Details about a download.
- Extension
Hello - Initial hello message sent from the browser extension to the mediator upon connection.
- Password
- A password that is zeroed from memory on drop.
- TabDetails
- Full details about a browser tab.
- TabGroup
Id - Chrome-assigned tab group identifier.
- TabGroup
Info - Information about a Chrome tab group.
- TabId
- Browser-assigned tab identifier.
- TabSummary
- A brief summary of a tab, suitable for embedding in window listings.
- Window
Id - Browser-assigned window identifier.
- 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.
- Download
State - The state of a download.
- Extension
Message - A message received by the mediator from the browser extension via native messaging.
- Filename
Conflict Action - How to handle filename conflicts when downloading.
- Invalid
Cookie Store Id - Error type for invalid
CookieStoreIdvalues. - Invalid
Download Id - Error type for invalid
DownloadIdvalues. - Invalid
TabGroup Id - Error type for invalid
TabGroupIdvalues. - Invalid
TabId - Error type for invalid
TabIdvalues. - Invalid
Window Id - Error type for invalid
WindowIdvalues. - TabGroup
Color - The color of a Chrome tab group.
- TabStatus
- The loading status of a tab.
- Window
State - The visual state of a browser window.
- Window
Type - The type of a browser window.