mirage-flow-combinators

Flow implementations and combinators for MirageOS specialized to lwt
Library mirage-flow-combinators

Parameters

module A : Mirage_flow.S
module B : Mirage_flow.S

Signature

type error = [
| `A of A.error
| `B of B.write_error
]

The type for copy errors.

val pp_error : error Fmt.t

pp_error pretty-prints errors.

val copy : src:A.flow -> dst:B.flow -> ( Mirage_flow.stats, error ) result Lwt.t

copy source destination copies data from source to destination using the clock to compute a transfer rate. On successful completion, some statistics are returned. On failure we return a printable error.