Module Async_smtp.Multispool.Make.Entry

An Entry is associated with a particular queue

type t
include sig ... end
val sexp_of_t : t ‑> Sexplib.Sexp.t
val create : spool ‑> Spoolable.Queue.t ‑> name:string ‑> t

Create an entry. This is exposed so that an Entry.t may be created from a file name on disk

val contents_unsafe : t ‑> Spoolable.t Async.Deferred.Or_error.t

Get contents of this Entry.t in an unsafe way. No checkout is performed and the data is read directly from the queue file. If you need to later update this data, consider revalidating the contents after checkout and before writing.

val stat : t ‑> Async.Unix.Stats.t Async.Deferred.Or_error.t
val spool : t ‑> spool
val queue : t ‑> Spoolable.Queue.t
val name : t ‑> string