Protocol_conv_msgpack.Msgpackmodule Make
(P : Ppx_protocol_driver.Parameters) :
Protocol_conv.Runtime.Driver with type t = Msgpck.tinclude Protocol_conv.Runtime.Driver with type t = Msgpck.tSerialized type. This type should not be opaque, so it is recommended that drivers implement the signature as Runtime.Driver with type t = ...
exception Protocol_error of errorException for protocol errors. The driver should make sure that this is the only exception raised when deserializing
val error_to_string_hum : error -> stringConvert an error type to a human readable string
val to_string_hum : t -> stringConvert t to a string
val try_with : (t -> 'v) -> t -> ('v, error) Protocol_conv.Runtime.resultWrap deserialization function to convert exceptions into an result type
val to_variant : (t, 'a) Protocol_conv.Runtime.Variant_in.t list -> t -> 'aval of_variant : string -> (t, 'a, t) Protocol_conv.Runtime.Tuple_out.t -> 'aval to_record :
(t, 'constr, 'b) Protocol_conv.Runtime.Record_in.t ->
'constr ->
t ->
'bval of_record : (t, 'a, t) Protocol_conv.Runtime.Record_out.t -> 'aval to_tuple :
(t, 'constr, 'b) Protocol_conv.Runtime.Tuple_in.t ->
'constr ->
t ->
'bval of_tuple : (t, 'a, t) Protocol_conv.Runtime.Tuple_out.t -> 'aval to_result :
(t -> 'a) ->
(t -> 'b) ->
t ->
('a, 'b) Protocol_conv.Runtime.resultval of_result :
('a -> t) ->
('b -> t) ->
('a, 'b) Protocol_conv.Runtime.result ->
tval to_int : t -> intval of_int : int -> tval to_int32 : t -> int32val of_int32 : int32 -> tval to_int64 : t -> int64val of_int64 : int64 -> tval to_nativeint : t -> nativeintval of_nativeint : nativeint -> tval to_char : t -> charval of_char : char -> tval to_string : t -> stringval of_string : string -> tval to_float : t -> floatval of_float : float -> tval to_bool : t -> boolval of_bool : bool -> tval to_bytes : t -> bytesval of_bytes : bytes -> tval to_unit : t -> unitval of_unit : unit -> tval of_msgpack : t -> (t, error) Protocol_conv.Runtime.result