Module plugin

Module plugin 

Source
Expand description

2026-09-26: Plugin, the abstraction a crate::Benchmark specialises, with its PluginHandle and the TargetEndpoint it drives.

Plugin::load receives the handle: status line, log, progress and glow as PluginEvents sent over a channel, plus the artifact store, the endpoint and the cancellation flag.

Owner: bench (plugin API). Invariants:

  • TargetEndpoint::base_url never ends in / when built by new or local.
  • Sending an event never fails the plugin: a closed channel is ignored.

Structs§

PluginHandle
2026-09-26: The plugin’s view of its host.
TargetEndpoint
2026-09-26: The served endpoint a benchmark drives. In the TUI it starts as the local server, and the Benchmarks pane can point it at another URL or model.

Enums§

PluginEvent
2026-09-26: A message from a running plugin to the terminal.

Traits§

Plugin
2026-09-26: The plugin abstraction. Every implementor today is a benchmark.