Up

module Server

: sig
#
module Callbacks = Server_callbacks
#
type t
#
val start : config:Config.t -> (module Server_callbacks.S) -> t Async.Std.Deferred.Or_error.t
#
val config : t -> Config.t
#
val close : ?timeout:unit Async.Std.Deferred.t -> t -> unit Async.Std.Deferred.Or_error.t
#
val read_bsmtp : Async.Std.Reader.t -> Types.Envelope.t Core.Std.Or_error.t Async.Std.Pipe.Reader.t
#
val read_mbox : Async.Std.Reader.t -> Types.Envelope.t Core.Std.Or_error.t Async.Std.Pipe.Reader.t
end