pub type AcpSink = Arc<dyn Fn(&Value, Pairing) -> Result<AcpProgress, AxError> + Send + Sync>;Expand description
Where an outside request goes once the token has been judged.
The body travels as the JSON it arrived as, and nothing here
reads a field out of it. The grammar of an inbound request is
agent_protocols::Incoming, whose parse is the only constructor and
therefore the only place the rules about it hold; a struct here
with the same four fields, deserialized first and copied across
field by field, would leave parse with no caller outside its own
tests and carry the plaintext token into a value that derives
Debug. The token is read where it is judged, below, and
travels no further.
Aliased Typeยง
pub struct AcpSink { /* private fields */ }