module Client_msg:sig..end
module Control:sig..end
type ('name, 'data) t =
| |
Control of |
| |
Data of |
val t_of_sexp__ : 'name 'data.
(Sexplib.Sexp.t -> 'name) ->
(Sexplib.Sexp.t -> 'data) ->
Sexplib.Sexp.t -> ('name, 'data) tval t_of_sexp : 'name 'data.
(Sexplib.Sexp.t -> 'name) ->
(Sexplib.Sexp.t -> 'data) ->
Sexplib.Sexp.t -> ('name, 'data) tval sexp_of_t : 'name 'data.
('name -> Sexplib.Sexp.t) ->
('data -> Sexplib.Sexp.t) ->
('name, 'data) t -> Sexplib.Sexp.tval bin_size_t : ('a -> int) ->
('b -> int) -> ('a, 'b) t -> intval bin_write_t_ : (Bin_prot.Unsafe_common.sptr ->
Bin_prot.Unsafe_common.eptr ->
'a -> Bin_prot.Unsafe_common.sptr) ->
(Bin_prot.Unsafe_common.sptr ->
Bin_prot.Unsafe_common.eptr ->
'b -> Bin_prot.Unsafe_common.sptr) ->
Bin_prot.Unsafe_common.sptr ->
Bin_prot.Unsafe_common.eptr ->
('a, 'b) t ->
Bin_prot.Unsafe_common.sptrval bin_write_t : (Bin_prot.Unsafe_common.sptr ->
Bin_prot.Unsafe_common.eptr ->
'a -> Bin_prot.Unsafe_common.sptr) ->
(Bin_prot.Unsafe_common.sptr ->
Bin_prot.Unsafe_common.eptr ->
'b -> Bin_prot.Unsafe_common.sptr) ->
Bin_prot.Common.buf ->
pos:Bin_prot.Common.pos ->
('a, 'b) t -> Bin_prot.Common.posval bin_writer_t : 'a Bin_prot.Type_class.writer ->
'b Bin_prot.Type_class.writer ->
('a, 'b) t Bin_prot.Type_class.writerval bin_read_t__ : 'a -> 'b -> 'c -> 'd -> 'e -> 'fval bin_read_t_ : (Bin_prot.Unsafe_common.sptr_ptr ->
Bin_prot.Unsafe_common.eptr -> 'a) ->
(Bin_prot.Unsafe_common.sptr_ptr ->
Bin_prot.Unsafe_common.eptr -> 'b) ->
Bin_prot.Unsafe_common.sptr_ptr ->
Bin_prot.Unsafe_common.eptr ->
('a, 'b) tval bin_read_t : (Bin_prot.Unsafe_common.sptr_ptr ->
Bin_prot.Unsafe_common.eptr -> 'name) ->
(Bin_prot.Unsafe_common.sptr_ptr ->
Bin_prot.Unsafe_common.eptr -> 'data) ->
Bin_prot.Common.buf ->
pos_ref:Bin_prot.Common.pos Pervasives.ref ->
('name, 'data) tval bin_reader_t : 'a Bin_prot.Type_class.reader ->
'b Bin_prot.Type_class.reader ->
('a, 'b) t Bin_prot.Type_class.readerval bin_t : 'a Bin_prot.Type_class.t ->
'b Bin_prot.Type_class.t ->
('a, 'b) t Bin_prot.Type_class.tlookup_marshal_fun v This function takes a version v, and returns a
function that will downgrade (if necessary) the current version to v and
then write it to a bigsubstring. It is perfectly fine if one message
becomes zero or more messages as a result of downgrading, this is why the
marshal fun returns a list. The contents of these buffers will be copied
immediatly, so it is safe to reuse the same bigstring for multiple
marshals.lookup_unmarshal_fun v This function takes a version v, and returns a
function that unmarshals a message and upgrades it, returning zero or more
messages as a result of the upgrade. The bigsubstring is only guaranteed
to contain valid data until the unmarshal function returns, after which it
may be overwritten immediatly.
If you don't care about modes, just use Dont_care_about_mode.