lightspeed/agent/isa

Orthogonal instruction set for the Lightspeed runtime.

Types

Runtime instruction.

pub type Instruction {
  Mount(route: String, csrf_token: String)
  Render(view_id: String)
  Patch(target: String, html: String)
  PushEvent(name: String, payload: String)
  Navigate(to: String)
  Subscribe(topic: String)
  Unsubscribe(topic: String)
  Shutdown(reason: String)
}

Constructors

  • Mount(route: String, csrf_token: String)
  • Render(view_id: String)
  • Patch(target: String, html: String)
  • PushEvent(name: String, payload: String)
  • Navigate(to: String)
  • Subscribe(topic: String)
  • Unsubscribe(topic: String)
  • Shutdown(reason: String)

Values

pub fn describe(instruction: Instruction) -> String

Human-readable instruction summary for traces.

pub fn is_client_instruction(instruction: Instruction) -> Bool

True when the instruction is intended for the browser/client runtime.

pub fn is_server_instruction(instruction: Instruction) -> Bool

True when the instruction is intended for the server runtime.

pub fn opcode(instruction: Instruction) -> String

Stable opcode string for logs, tests, and protocol mapping.

Search Document