package nbd

  1. Overview
  2. Docs

A reply sent from the server in response to a Request. Note these arrive out-of-order.

type t = {
  1. error : [ `Ok of unit | `Error of Error.t ];
    (*

    Success or failure of the request

    *)
  2. handle : int64;
    (*

    The unique id in the Request

    *)
}
include sig ... end
val t_of_sexp : Sexplib.Sexp.t -> t
val sexp_of_t : t -> Sexplib.Sexp.t
val to_string : t -> string
val sizeof : int
val marshal : Cstruct.t -> t -> unit
val unmarshal : Cstruct.t -> [ `Ok of t | `Error of exn ]
OCaml

Innovation. Community. Security.