Module Async_smtp.Multispool.Make.Data_file

Provide access to a Spoolable.Data.t. Data_file.t functions as a "handle" to the underlying data so the user can choose when to read a Spoolable.Data.t.

type t
val path : t ‑> string
val load : t ‑> Spoolable.Data.t Async.Deferred.Or_error.t
val save : t ‑> contents:Spoolable.Data.t ‑> unit Async.Deferred.Or_error.t
val stat : t ‑> Async.Unix.Stats.t Async.Deferred.Or_error.t