package async_smtp

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Entry.DirectSource

Direct operations that provide no validation or exclusive access guarantees.

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.

Sourceval data_file : t -> Data_file.t

Get the data_file associated with an Entry.t. It is unsafe to operate on this directly ouside of a checkout, much like contents.

Save contents directly to the file path derived from t. There are no validation or exclusive access guarantees. This will atomically clobber over any existing file.

Sourceval remove : t -> unit Async.Deferred.Or_error.t

Delete an Entry.t from disk along with its registry file and data_file. There are no validation or exclusive access guarantees.

OCaml

Innovation. Community. Security.