pub const SESSION_API: &[(&str, &str)];Expand description
Every method the session userdata answers to, with the contract it holds in one line.
The declared surface: what Lua can reach on a session is this table and
nothing else, and a test below reflects over a live userdata to hold that
(a method registered without an entry here fails it). knl.api() hands
the same list to Lua, so a caller can ask what a session offers instead of
guessing.
Each doc names the classes that method can raise (knl.error(e).kind,
one of knl.api().errors), so a caller reads what it has to handle from
the same table it reads the signature from. busy / storage /
corruption are the durable backend’s and never occur on the in-memory
one; a method that only reads its own value raises nothing at all.