package carton-git

  1. Overview
  2. Docs
type 'a rd = < rd : unit.. > as 'a
type 'a wr = < wr : unit.. > as 'a
type 'a mode =
  1. | Rd : < rd : unit > mode
  2. | Wr : < wr : unit > mode
  3. | RdWr : < rd : unit ; wr : unit > mode
type t = Fpath.t
type uid = Fpath.t
type 'a fd = Lwt_unix.file_descr
type error = [
  1. | `Not_found of Fpath.t
]
type +'a fiber = 'a Lwt.t
val pp_error : error Fmt.t
val create : mode:'a mode -> t -> uid -> ('a fd, error) result fiber
val map : t -> 'm rd fd -> pos:int64 -> int -> Bigstringaf.t
val close : t -> 'm fd -> (unit, error) result fiber
val list : t -> uid list fiber
val length : 'm fd -> int64 fiber
OCaml

Innovation. Community. Security.