pub trait Answers { // Required methods fn reading(&self, resource: &str) -> Option<Value>; fn submit(&self, ask: &Ask) -> Result<(), String>; }
What answers a Connection: the session’s door, or a host that runs the app inside itself in a test or a capture.
Connection
The reading of resource now, as the host publishes it: the state a view reads, never a document. None when nothing publishes it, or the caller may not read it (denial is absence, §6).
resource
None
§6
Submit ask, answering the door’s verdict.
ask
The door’s refusal, in its own words (§4, §6).
§4