package bonsai
Module Bonsai_protocol.Versioned_messageSource
Source
type t = | V1 of Stable.Message.V1.t list| V2 of Stable.Message.V2.t list| V3 of Stable.Worker_message.V1.t list| V4 of Stable.Worker_message.V2.t list
include Core.Bin_prot.Binable.S with type t := t
include Bin_prot.Binable.S_only_functions with type t := t
This function only needs implementation if t exposed to be a polymorphic variant. Despite what the type reads, this does *not* produce a function after reading; instead it takes the constructor tag (int) before reading and reads the rest of the variant t afterwards.