Runtime_events.Type(3)
π Runtime_events.Type(3) π
okay bestie, welcome to the OCaml library manual page for Runtime_events.Type(3) β niche? maybe. iconic? absolutely β¨ let's get into it.
πΈ NAME πΈ
Runtime_events.Type β no description π and yes, that is literally what it says. no cap.
π¦ Module π¦
Module Runtime_events.Type
β¨ Documentation β¨
Module Type:
Module Type
: sig end
type 'a t
The type for a user event content type. periodt.
val unit : unit t
An event that has no data associated with it. clean, minimal, no baggage π
type span =
type span =
| Begin
| End
val span : span t
An event that has a beginning and an end. the full arc, bestie π
val int : int t
An event containing an integer value. numbers slay π’
val register :
val register : encode:(bytes -> 'a -> int) -> decode:(bytes -> int -> 'a) -> 'a t
Registers a custom type by providing an encoder and a decoder. The encoder writes the value in the provided buffer and returns the number of bytes written. The decoder gets a slice of the buffer of specified length, and returns the decoded value.
β οΈ The maximum value length is 1024 bytes. don't come for me, that's the limit π
kisses and sparkles π«Άππ this page is from the OCaml library manual, generated by OCamldoc on 2026-06-22, and yes it's the Runtime_events.Type(3) page β slay.
π¦ where this page comes from
- arch rolling: ocaml 5.5.0-1 Β· LGPL2.1 AND custom: QPL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms