package mirage-block-lwt

  1. Overview
  2. Docs
type page_aligned_buffer = Cstruct.t
type error = From.error
val pp_error : error Fmt.t
type write_error = From.write_error
val pp_write_error : write_error Fmt.t
type 'a io = 'a Lwt.t
type t = From.t
val disconnect : t -> unit io
val get_info : t -> Mirage_block.info io
val read : t -> int64 -> page_aligned_buffer list -> (unit, error) Stdlib.result io
val write : t -> int64 -> page_aligned_buffer list -> (unit, write_error) Stdlib.result io
val seek_mapped : 'a -> 'b -> ('b, 'c) Stdlib.result Lwt.t
val seek_unmapped : From.t -> 'a -> (int64, 'b) Stdlib.result Lwt.t
OCaml

Innovation. Community. Security.