Up

Module Direct

Signature

val iter : t -> id:(([<
| `Read
| `Set_and_create
], t, Id.t) Fieldslib.Field.t_with_perm -> t -> Id.t -> unit) -> fd:(([<
| `Read
| `Set_and_create
], t, Fd.t) Fieldslib.Field.t_with_perm -> t -> Fd.t -> unit) -> monitor:(([<
| `Read
| `Set_and_create
], t, Import.Monitor.t) Fieldslib.Field.t_with_perm -> t -> Import.Monitor.t -> unit) -> inner_monitor:(([<
| `Read
| `Set_and_create
], t, Import.Monitor.t) Fieldslib.Field.t_with_perm -> t -> Import.Monitor.t -> unit) -> background_writer_state:(([<
| `Read
| `Set_and_create
], t, [
| `Not_running
| `Running
| `Stopped_permanently
]) Fieldslib.Field.t_with_perm -> t -> [
| `Not_running
| `Running
| `Stopped_permanently
] -> unit) -> syscall:(([<
| `Read
| `Set_and_create
], t, [
| `Per_cycle
| `Periodic of Core.Std.Time.Span.t
]) Fieldslib.Field.t_with_perm -> t -> [
| `Per_cycle
| `Periodic of Core.Std.Time.Span.t
] -> unit) -> bytes_received:(([<
| `Read
| `Set_and_create
], t, Core.Std.Int63.t) Fieldslib.Field.t_with_perm -> t -> Core.Std.Int63.t -> unit) -> bytes_written:(([<
| `Read
| `Set_and_create
], t, Core.Std.Int63.t) Fieldslib.Field.t_with_perm -> t -> Core.Std.Int63.t -> unit) -> scheduled:(([<
| `Read
| `Set_and_create
], t, Scheduled.t Core.Std.sexp_opaque) Fieldslib.Field.t_with_perm -> t -> Scheduled.t Core.Std.sexp_opaque -> unit) -> scheduled_bytes:(([<
| `Read
| `Set_and_create
], t, int) Fieldslib.Field.t_with_perm -> t -> int -> unit) -> buf:(([<
| `Read
| `Set_and_create
], t, Core.Std.Bigstring.t Core.Std.sexp_opaque) Fieldslib.Field.t_with_perm -> t -> Core.Std.Bigstring.t Core.Std.sexp_opaque -> unit) -> scheduled_back:(([<
| `Read
| `Set_and_create
], t, int) Fieldslib.Field.t_with_perm -> t -> int -> unit) -> back:(([<
| `Read
| `Set_and_create
], t, int) Fieldslib.Field.t_with_perm -> t -> int -> unit) -> flushes:(([<
| `Read
| `Set_and_create
], t, (Core.Std.Time.t Import.Ivar.t * Core.Std.Int63.t) Core.Std.Queue.t Core.Std.sexp_opaque) Fieldslib.Field.t_with_perm -> t -> (Core.Std.Time.t Import.Ivar.t * Core.Std.Int63.t) Core.Std.Queue.t Core.Std.sexp_opaque -> unit) -> close_state:(([<
| `Read
| `Set_and_create
], t, [
| `Closed
| `Closed_and_flushing
| `Open
]) Fieldslib.Field.t_with_perm -> t -> [
| `Closed
| `Closed_and_flushing
| `Open
] -> unit) -> close_finished:(([<
| `Read
| `Set_and_create
], t, unit Import.Ivar.t) Fieldslib.Field.t_with_perm -> t -> unit Import.Ivar.t -> unit) -> close_started:(([<
| `Read
| `Set_and_create
], t, unit Import.Ivar.t) Fieldslib.Field.t_with_perm -> t -> unit Import.Ivar.t -> unit) -> producers_to_flush_at_close:(([<
| `Read
| `Set_and_create
], t, (unit -> unit Import.Deferred.t) Core.Std.Bag.t) Fieldslib.Field.t_with_perm -> t -> (unit -> unit Import.Deferred.t) Core.Std.Bag.t -> unit) -> flush_at_shutdown_elt:(([<
| `Read
| `Set_and_create
], t, t Core.Std.sexp_opaque Core.Std.Bag.Elt.t option) Fieldslib.Field.t_with_perm -> t -> t Core.Std.sexp_opaque Core.Std.Bag.Elt.t option -> unit) -> check_buffer_age:(([<
| `Read
| `Set_and_create
], t, t Core.Std.sexp_opaque Check_buffer_age'.t Core.Std.Bag.Elt.t option) Fieldslib.Field.t_with_perm -> t -> t Core.Std.sexp_opaque Check_buffer_age'.t Core.Std.Bag.Elt.t option -> unit) -> consumer_left:(([<
| `Read
| `Set_and_create
], t, unit Import.Ivar.t) Fieldslib.Field.t_with_perm -> t -> unit Import.Ivar.t -> unit) -> raise_when_consumer_leaves:(([<
| `Read
| `Set_and_create
], t, bool) Fieldslib.Field.t_with_perm -> t -> bool -> unit) -> open_flags:(([<
| `Read
| `Set_and_create
], t, open_flags Import.Deferred.t) Fieldslib.Field.t_with_perm -> t -> open_flags Import.Deferred.t -> 'a) -> 'a
val fold : t -> init:'a -> id:('a -> ([<
| `Read
| `Set_and_create
], t, Id.t) Fieldslib.Field.t_with_perm -> t -> Id.t -> 'b) -> fd:('b -> ([<
| `Read
| `Set_and_create
], t, Fd.t) Fieldslib.Field.t_with_perm -> t -> Fd.t -> 'c) -> monitor:('c -> ([<
| `Read
| `Set_and_create
], t, Import.Monitor.t) Fieldslib.Field.t_with_perm -> t -> Import.Monitor.t -> 'd) -> inner_monitor:('d -> ([<
| `Read
| `Set_and_create
], t, Import.Monitor.t) Fieldslib.Field.t_with_perm -> t -> Import.Monitor.t -> 'e) -> background_writer_state:('e -> ([<
| `Read
| `Set_and_create
], t, [
| `Not_running
| `Running
| `Stopped_permanently
]) Fieldslib.Field.t_with_perm -> t -> [
| `Not_running
| `Running
| `Stopped_permanently
] -> 'f) -> syscall:('f -> ([<
| `Read
| `Set_and_create
], t, [
| `Per_cycle
| `Periodic of Core.Std.Time.Span.t
]) Fieldslib.Field.t_with_perm -> t -> [
| `Per_cycle
| `Periodic of Core.Std.Time.Span.t
] -> 'g) -> bytes_received:('g -> ([<
| `Read
| `Set_and_create
], t, Core.Std.Int63.t) Fieldslib.Field.t_with_perm -> t -> Core.Std.Int63.t -> 'h) -> bytes_written:('h -> ([<
| `Read
| `Set_and_create
], t, Core.Std.Int63.t) Fieldslib.Field.t_with_perm -> t -> Core.Std.Int63.t -> 'i) -> scheduled:('i -> ([<
| `Read
| `Set_and_create
], t, Scheduled.t Core.Std.sexp_opaque) Fieldslib.Field.t_with_perm -> t -> Scheduled.t Core.Std.sexp_opaque -> 'j) -> scheduled_bytes:('j -> ([<
| `Read
| `Set_and_create
], t, int) Fieldslib.Field.t_with_perm -> t -> int -> 'k) -> buf:('k -> ([<
| `Read
| `Set_and_create
], t, Core.Std.Bigstring.t Core.Std.sexp_opaque) Fieldslib.Field.t_with_perm -> t -> Core.Std.Bigstring.t Core.Std.sexp_opaque -> 'l) -> scheduled_back:('l -> ([<
| `Read
| `Set_and_create
], t, int) Fieldslib.Field.t_with_perm -> t -> int -> 'm) -> back:('m -> ([<
| `Read
| `Set_and_create
], t, int) Fieldslib.Field.t_with_perm -> t -> int -> 'n) -> flushes:('n -> ([<
| `Read
| `Set_and_create
], t, (Core.Std.Time.t Import.Ivar.t * Core.Std.Int63.t) Core.Std.Queue.t Core.Std.sexp_opaque) Fieldslib.Field.t_with_perm -> t -> (Core.Std.Time.t Import.Ivar.t * Core.Std.Int63.t) Core.Std.Queue.t Core.Std.sexp_opaque -> 'o) -> close_state:('o -> ([<
| `Read
| `Set_and_create
], t, [
| `Closed
| `Closed_and_flushing
| `Open
]) Fieldslib.Field.t_with_perm -> t -> [
| `Closed
| `Closed_and_flushing
| `Open
] -> 'p) -> close_finished:('p -> ([<
| `Read
| `Set_and_create
], t, unit Import.Ivar.t) Fieldslib.Field.t_with_perm -> t -> unit Import.Ivar.t -> 'q) -> close_started:('q -> ([<
| `Read
| `Set_and_create
], t, unit Import.Ivar.t) Fieldslib.Field.t_with_perm -> t -> unit Import.Ivar.t -> 'r) -> producers_to_flush_at_close:('r -> ([<
| `Read
| `Set_and_create
], t, (unit -> unit Import.Deferred.t) Core.Std.Bag.t) Fieldslib.Field.t_with_perm -> t -> (unit -> unit Import.Deferred.t) Core.Std.Bag.t -> 's) -> flush_at_shutdown_elt:('s -> ([<
| `Read
| `Set_and_create
], t, t Core.Std.sexp_opaque Core.Std.Bag.Elt.t option) Fieldslib.Field.t_with_perm -> t -> t Core.Std.sexp_opaque Core.Std.Bag.Elt.t option -> 't) -> check_buffer_age:('t -> ([<
| `Read
| `Set_and_create
], t, t Core.Std.sexp_opaque Check_buffer_age'.t Core.Std.Bag.Elt.t option) Fieldslib.Field.t_with_perm -> t -> t Core.Std.sexp_opaque Check_buffer_age'.t Core.Std.Bag.Elt.t option -> 'u) -> consumer_left:('u -> ([<
| `Read
| `Set_and_create
], t, unit Import.Ivar.t) Fieldslib.Field.t_with_perm -> t -> unit Import.Ivar.t -> 'v) -> raise_when_consumer_leaves:('v -> ([<
| `Read
| `Set_and_create
], t, bool) Fieldslib.Field.t_with_perm -> t -> bool -> 'w) -> open_flags:('w -> ([<
| `Read
| `Set_and_create
], t, open_flags Import.Deferred.t) Fieldslib.Field.t_with_perm -> t -> open_flags Import.Deferred.t -> 'x) -> 'x
val set_all_mutable_fields : t -> fd:Fd.t -> background_writer_state:[
| `Not_running
| `Running
| `Stopped_permanently
] -> bytes_received:Core.Std.Int63.t -> bytes_written:Core.Std.Int63.t -> scheduled_bytes:int -> buf:Core.Std.Bigstring.t Core.Std.sexp_opaque -> scheduled_back:int -> back:int -> close_state:[
| `Closed
| `Closed_and_flushing
| `Open
] -> flush_at_shutdown_elt:t Core.Std.sexp_opaque Core.Std.Bag.Elt.t option -> check_buffer_age:t Core.Std.sexp_opaque Check_buffer_age'.t Core.Std.Bag.Elt.t option -> raise_when_consumer_leaves:bool -> unit