Tahr.RPC.Message.AcceptedReply (tahr v0.1.0)

Copy Markdown View Source

Successful or per-procedure-error reply. body is the procedure's encoded result for :success, or the relevant payload (e.g. {:prog_mismatch, low, high}) for the error cases.

body is iodata so streaming-aware procedures (e.g. NFSv3 READ) can hand back a chunk-shaped iolist without flattening to a single binary. The encoder feeds it straight into :gen_tcp.send/2, which accepts iolist.

Summary

Types

stat()

@type stat() ::
  :success
  | :prog_unavail
  | {:prog_mismatch, non_neg_integer(), non_neg_integer()}
  | :proc_unavail
  | :garbage_args
  | :system_err

t()

@type t() :: %Tahr.RPC.Message.AcceptedReply{
  body: iodata(),
  stat: stat(),
  verf: Tahr.RPC.Auth.credential(),
  xid: non_neg_integer()
}