Safe Haskell | None |
---|---|
Language | Haskell2010 |
Higher-level for RPC messages.
- data Call a r = Call {}
- data Reply a
- = Reply {
- replyVerf :: !Auth
- replyResults :: a
- | ReplyError { }
- | ReplyRejected { }
- | ReplyFail String
- = Reply {
- type ReplyException = Reply Void
- replyResult :: Reply a -> Either ReplyException a
- getReply :: XDR a => Reply_body -> Get (Reply a)
- data Msg a r
Documentation
Call_body
with parameters
Reply_body
with results
Reply | |
| |
ReplyError | |
| |
ReplyRejected | |
ReplyFail String | Missing/corrupt response |
type ReplyException = Reply Void Source #
replyResult :: Reply a -> Either ReplyException a Source #
The successful reply results or an error.
getReply :: XDR a => Reply_body -> Get (Reply a) Source #
Construct a Reply
based on an already-parsed Reply_body
and to-be-parsed results.