Skip to main content

Module backend

Module backend 

Source
Expand description

Backend trait — the capnp-RPC-shaped seam the translator dispatches to.

Each method mirrors a 9P2000.L filesystem operation as expressed in nine.capnp (NpWalk / NpOpen / NpRead / NpWrite / NpClunk / NpStatReq). The translator owns the server-side fid table and calls these methods after resolving the incoming 9P fid.

MemoryBackend (crate::memory::MemoryBackend) provides an in-process implementation for standalone tests; the hyprstream binary crate ships a ModelBackend that wraps the generated ModelClient and turns each call into a capnp RPC against the model service’s fs scope (the inverse of RemoteModelMount, which goes VFS → RPC).

Structs§

OpenResult
Result of an open/lopen.
StatResult
Result of a stat/getattr.
WalkResult
Result of a walk: the qid of the resolved path and, for directories, the qids of each intermediate component. For a single-component walk (the common case for this translator) qids holds exactly the leaf qid.

Traits§

Backend
9P filesystem backend.