type 'conn runtime = (module RUNTIME with type t = 'conn)exception Flow_write of stringval server : 'conn runtime -> 'conn -> Mimic.flow -> unit Lwt.tval run : 'conn runtime -> 'conn -> Mimic.flow -> unit Lwt.tval service :
('connected_flow -> (Mimic.flow * impl, 'error) Stdlib.result Lwt.t) ->
('flow -> ('connected_flow, 'error) Stdlib.result Lwt.t) ->
('t -> ('flow, [> `Closed ] as 'error) Stdlib.result Lwt.t) ->
('t -> unit Lwt.t) ->
't serviceval serve :
?stop:Lwt_switch.t ->
't service ->
't ->
[ `Initialized of unit Lwt.t ]