Skip to main content

DaemonMessage

Enum DaemonMessage 

Source
pub enum DaemonMessage {
Show 30 variants Frame { tab_id: u64, frame: EcsFrame, metadata: PageMetadata, }, FrameDelta { tab_id: u64, sequence_number: u64, scroll_offset: (f32, f32), viewport: (f32, f32), entities: ChangedEntities, }, Metadata { tab_id: u64, title: String, url: String, }, Error { tab_id: u64, code: ErrorCode, description: String, }, EvaluateResult { tab_id: u64, result: String, }, FoundEntities { tab_id: u64, entities: Vec<EntitySummary>, }, Navigate { tab_id: u64, url: String, format: u8, }, Scroll { tab_id: u64, dx: f32, dy: f32, }, Click { tab_id: u64, x: f32, y: f32, }, Input { tab_id: u64, text: String, }, Resize { tab_id: u64, width: u32, height: u32, }, NewTab { url: Option<String>, }, CloseTab { tab_id: u64, }, GoBack { tab_id: u64, }, GoForward { tab_id: u64, }, Evaluate { tab_id: u64, js: String, timeout_ms: u32, }, FindEntities { tab_id: u64, query: EntityQuery, }, EntitySnapshot { tab_id: u64, }, ClickEntity { tab_id: u64, entity_id: u64, }, InputEntity { tab_id: u64, entity_id: u64, value: String, }, ActionLog { tab_id: u64, entries: Vec<ActionEntry>, }, ClickSelector { tab_id: u64, query: EntityQuery, }, GetActionLog { tab_id: u64, }, CompareTabs { tab_a: u64, tab_b: u64, }, TabComparison { tab_a: u64, tab_b: u64, summary: String, }, TransferTab { from: u64, to: u64, }, Health, HealthResult { pid: u32, uptime_secs: u64, rss_kb: u64, connections: u32, version: String, }, ApiKey { key: String, }, Handshake { version: u32, capabilities: Vec<String>, },
}
Expand description

Messages sent over Unix Domain Socket between daemon and client.

⚠ DISCRIMINANT ORDER IS FIXED — never reorder, never insert between groups. Adding new variants: APPEND to the end. Reordering WILL silently break all existing clients via bincode encoding.

Current layout: Daemon→Client: Frame=0, FrameDelta=1, Metadata=2, Error=3, EvaluateResult=4, FoundEntities=5 Client→Daemon: Navigate=6, Scroll=7, Click=8, Input=9, Resize=10, NewTab=11, CloseTab=12, GoBack=13, GoForward=14, Evaluate=15 Agent: FindEntities=16, EntitySnapshot=17, ClickEntity=18, InputEntity=19 Extensions: ActionLog=20, ClickSelector=21, GetActionLog=22, CompareTabs=23, TabComparison=24, TransferTab=25 Health: Health=26, HealthResult=27 Auth/Version: ApiKey=28, Handshake=29

Variants§

§

Frame

Fields

§tab_id: u64
§frame: EcsFrame
§metadata: PageMetadata
§

FrameDelta

Fields

§tab_id: u64
§sequence_number: u64
§scroll_offset: (f32, f32)
§viewport: (f32, f32)
§

Metadata

Fields

§tab_id: u64
§title: String
§

Error

Fields

§tab_id: u64
§description: String
§

EvaluateResult

Fields

§tab_id: u64
§result: String
§

FoundEntities

Fields

§tab_id: u64
§entities: Vec<EntitySummary>
§

Navigate

Fields

§tab_id: u64
§format: u8
§

Scroll

Fields

§tab_id: u64
§dx: f32
§dy: f32
§

Click

Fields

§tab_id: u64
§

Input

Fields

§tab_id: u64
§text: String
§

Resize

Fields

§tab_id: u64
§width: u32
§height: u32
§

NewTab

Fields

§

CloseTab

Fields

§tab_id: u64
§

GoBack

Fields

§tab_id: u64
§

GoForward

Fields

§tab_id: u64
§

Evaluate

Fields

§tab_id: u64
§timeout_ms: u32
§

FindEntities

Fields

§tab_id: u64
§

EntitySnapshot

Fields

§tab_id: u64
§

ClickEntity

Fields

§tab_id: u64
§entity_id: u64
§

InputEntity

Fields

§tab_id: u64
§entity_id: u64
§value: String
§

ActionLog

Daemon → Client: action history for agent reasoning.

Fields

§tab_id: u64
§entries: Vec<ActionEntry>
§

ClickSelector

Click the first entity matching a semantic selector.

Fields

§tab_id: u64
§

GetActionLog

Get action history for a tab.

Fields

§tab_id: u64
§

CompareTabs

Compare two tabs’ entity states.

Fields

§tab_a: u64
§tab_b: u64
§

TabComparison

Daemon → Client: result of CompareTabs.

Fields

§tab_a: u64
§tab_b: u64
§summary: String
§

TransferTab

Transfer focus / content from one tab to another.

Fields

§from: u64
§to: u64
§

Health

Client → Daemon: request daemon health/status info.

§

HealthResult

Daemon → Client: health/status response.

Fields

§pid: u32
§uptime_secs: u64
§rss_kb: u64
§connections: u32
§version: String
§

ApiKey

Client → Daemon: authenticate with API key (must be first message).

Fields

§

Handshake

Bidirectional: protocol version handshake.

Fields

§version: u32
§capabilities: Vec<String>

Trait Implementations§

Source§

impl Clone for DaemonMessage

Source§

fn clone(&self) -> DaemonMessage

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DaemonMessage

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for DaemonMessage

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for DaemonMessage

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.