Module V0.RPC_answer

type !'o t = [
| `Conflict of Error_monad.error list option
| `Created of string option
| `Error of Error_monad.error list option
| `Forbidden of Error_monad.error list option
| `No_content
| `Not_found of Error_monad.error list option
| `Ok of 'o
| `OkStream of 'o stream
| `Unauthorized of Error_monad.error list option
]
and !'a stream = {
next : unit -> 'a option Lwt.t;
shutdown : unit -> unit;
}
val return : 'o -> 'o t Lwt.t
val return_stream : 'o stream -> 'o t Lwt.t
val not_found : 'o t Lwt.t
val fail : Error_monad.error list -> 'a t Lwt.t