Skip to main content

Crate browser_controller_types

Crate browser_controller_types 

Source
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§

BrowserInfo
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.
ExtensionHello
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.
WindowSummary
A summary of a browser window including its tabs.

Enums§

BrowserEvent
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.
ExtensionMessage
A message received by the mediator from the Firefox extension via native messaging.
TabStatus
The loading status of a tab.
WindowState
The visual state of a browser window.