Skip to main content

Crate beam_worker

Crate beam_worker 

Source

Structs§

HerdrBackend
A managed or observed Herdr terminal identity. ids is populated by spawn() and read by run_loop for Ready; it lives behind a mutex so the backend can be shared as Arc<dyn SessionBackend>.
HerdrObserveBackend
Adopt backend: observe + drive a user-owned Herdr pane. spawn() only starts observe; destroy_session() is a no-op (Beam never tears down a user’s workspace), and it never pane runs a second CLI.
SpawnOpts

Traits§

SessionBackend
Backend trait. All methods take &self: implementations synchronize internally at per-operation granularity, so callers can share one Arc<dyn SessionBackend> across tasks without an outer Mutex. This is what keeps a long write_input() (paste + confirm loop) from blocking screen capture, terminal keys, and the screenshot coordinator.

Functions§

parse_herdr_frame_line
Extract the ANSI text from one observe NDJSON line. Returns None for non-frame events (terminal.closed, keepalives) and unparseable lines.
run
run_from_init_path