Module B00.Op.Write

module Write: sig .. end

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) Stdlib.result

data w () is the data to write.

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

result w is the result of the file write.

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

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

Formatters

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

pp_result formats a write result.

val pp : t B0_std.Fmt.t

pp formats a write.