Module Op.Write
File writes.
File writes
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 byw
.
val file : t -> B0_std.Fpath.t
file w
is the file written byw
.
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 ofw
tores
.
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.