package b0

  1. Overview
  2. Docs

File writes.

File writes

type t

The type for file write operations.

val salt : t -> string

salt w is the file write salt used for caching.

val mode : t -> int

int w is the mode of the file written by w.

val file : t -> B0_std.Fpath.t

file w is the file written by w.

val data : t -> unit -> (string, string) result

data w () is the data to write.

val result : t -> (unit, string) result

result w is the result of the file write.

val set_result : t -> (unit, string) result -> unit

set_result w res sets the write results of w to res.

Formatters

val pp_result : (unit, string) result B0_std.Fmt.t

pp_result formats a write result.

val pp : t B0_std.Fmt.t

pp formats a write.