Skip to main content

Module scan_host

Module scan_host 

Source
Expand description

OM.A1 — the scanned-excerpt-source guest world.

A WASM agenda provider implements the scanned-excerpt-source-plugin world: it exports extensions / begin / scan and imports the capability-gated host seams. This module holds the bindgen! for that world, using the same shared-types trick as every seam before it — with: points types + logging at the plugin world’s generated modules so a crossed value is the SAME Rust type the boundary round-trips.

Producer, async. A scan runs on a spawned task, never the keystroke path, and a scan call suspends the guest stack rather than pinning the caller’s thread.

Unlike media, the exports sit at world level rather than inside a named interface. That is error-parser’s shape and it is deliberate: the design fragment (org-mode.md §6.2) chose it because the two seams have the same job — a stateful per-run parser fed one unit of input at a time — and giving them different shapes would be inventing a second spelling for one idea.