Mirage_block_safe.Make
module B : Mirage_block.S
type t = B.t
val pp_error :
Stdlib.Format.formatter ->
[< `Disconnected | `Private of B.error | `Unsafe of string ] ->
unit
val pp_write_error :
Stdlib.Format.formatter ->
[< `Disconnected
| `Is_read_only
| `Private of B.write_error
| `Unsafe of string ] ->
unit
val get_info : B.t -> Mirage_block.info Lwt.t
val disconnect : B.t -> unit Lwt.t
val lift_error :
( 'a, [> Mirage_block.error ] as 'b ) Stdlib.result ->
( 'c, [> `Disconnected | `Private of 'd ] ) Stdlib.result
val lift_write_error :
( 'a, [> Mirage_block.write_error ] as 'b ) Stdlib.result ->
( 'c, [> `Disconnected | `Is_read_only | `Private of 'd ] ) Stdlib.result
val unsafe_write :
B.t ->
int64 ->
Cstruct.t list ->
( unit, B.write_error ) Stdlib.result Lwt.t
val write :
B.t ->
int64 ->
Cstruct.t list ->
( unit,
[> `Disconnected
| `Is_read_only
| `Private of B.write_error
| `Unsafe of string ] )
Stdlib.result
Lwt.t