package mirage-block

  1. Overview
  2. Docs
val error_to_string : [< `Disconnected | `Is_read_only | `Unimplemented | `Unknown of string ] -> string
val fold_s : f:('a -> int64 -> Cstruct.t -> 'a Lwt.t) -> 'a -> (module V1_LWT.BLOCK with type t = 'b) -> 'b -> [> `Error of [> `Msg of string ] | `Ok of 'a ] Lwt.t
val fold_mapped_s : f: ('a -> int64 -> Cstruct.t -> [< `Error of [ `Disconnected | `Is_read_only | `Unimplemented | `Unknown of string ] | `Ok of 'a ] Lwt.t) -> 'a -> (module Mirage_block_s.SEEKABLE with type t = 'b) -> 'b -> [> `Error of [ `Disconnected | `Is_read_only | `Unimplemented | `Unknown of string ] | `Ok of 'a ] Lwt.t
val fold_unmapped_s : f: ('a -> int64 -> int64 -> [< `Error of [ `Disconnected | `Is_read_only | `Unimplemented | `Unknown of string ] | `Ok of 'a ] Lwt.t) -> 'a -> (module Mirage_block_s.SEEKABLE with type t = 'b) -> 'b -> [> `Error of [ `Disconnected | `Is_read_only | `Unimplemented | `Unknown of string ] | `Ok of 'a ] Lwt.t