mirror of
https://github.com/AmbiML/sparrow-kata-full.git
synced 2025-04-27 10:31:31 +00:00
Simplify the rpc mechanism and make it more robust. Instead of serializing the request token at the front of the slice assigned to request arguments, write the token to the label field of the MessageInfo. Likewise instead of incorporating the status in the response data return that in the label field. This noticeably simplifies the code and properly handles the case where the receiver fails to map the page frame associated with rpc (previously it kinda punted, now the caller get a proper status result). While here extend the request/reswponse enum's to give each error a distinct value. Note that requsst/response tokens are passed as raw numbers under the assumption sender + receiver are on the same machine so are using the same byte order. NB: this adds the num_enum crate to handle enum<>primitive conversions. Change-Id: I536a23c7bddc43c686cc4335f22524debeeedf4f GitOrigin-RevId: 8a9fa009dc65605b8d160330edcde02dcfa2172b |
||
---|---|---|
.. | ||
c | ||
repl | ||
rust | ||
system |