pub fn read_from(r: &mut impl Read) -> Result<HookEvent, String>Expand description
Read a HookEvent from an arbitrary reader.
Reads until EOF, then parses the JSON payload. The detected CallerKind
is stored in a thread-local so that a subsequent respond_to call can
serialise the response in the correct format.