package mimic

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Mirage_protocol : sig ... end
type flow = private ..
include Mirage_flow.S with type flow := flow and type error = [ `Msg of string | `Not_found | `Cycle ]
type error = [
  1. | `Cycle
  2. | `Msg of string
  3. | `Not_found
]
val pp_error : error Fmt.t
type nonrec write_error = private [>
  1. | Mirage_flow.write_error
]
val pp_write_error : write_error Fmt.t
val read : flow -> (Cstruct.t Mirage_flow.or_eof, error) Stdlib.result Lwt.t
val write : flow -> Cstruct.t -> (unit, write_error) Stdlib.result Lwt.t
val writev : flow -> Cstruct.t list -> (unit, write_error) Stdlib.result Lwt.t
val close : flow -> unit Lwt.t
type ctx
type 'edn value
module Fun : sig ... end
val make : name:string -> 'edn value
val add : 'edn value -> 'edn -> ctx -> ctx
val get : 'edn value -> ctx -> 'edn option
val fold : 'edn value -> ('k, 'edn option Lwt.t) Fun.args -> k:'k -> ctx -> ctx
val merge : ctx -> ctx -> ctx
val empty : ctx
type ('edn, 'flow) protocol
val register : ?priority:int -> name:string -> (module Mirage_protocol.S with type endpoint = 'edn and type flow = 'flow) -> 'edn value * ('edn, 'flow) protocol
module type REPR = sig ... end
val repr : ('edn, 'flow) protocol -> (module REPR with type t = 'flow)
val resolve : ctx -> (flow, [> error ]) Stdlib.result Lwt.t
module Merge (A : sig ... end) (B : sig ... end) : sig ... end
OCaml

Innovation. Community. Security.