| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Network.ONCRPC.Message
Description
Higher-level for RPC messages.
Synopsis
- 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
Constructors
| Call | |
Reply_body with results
Constructors
| Reply | |
Fields
| |
| ReplyError | |
Fields
| |
| ReplyRejected | |
Fields | |
| ReplyFail String | Missing/corrupt response |
Instances
| Functor Reply Source # | |
| Exception ReplyException Source # | |
Defined in Network.ONCRPC.Message Methods toException :: ReplyException -> SomeException # | |
| XDR a => XDR (Reply a) Source # | |
| Show a => Show (Reply a) Source # | |
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.