package mirage-flow-lwt

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Parameters

module Clock : Mirage_clock.MCLOCK
module A : S
module B : S

Signature

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

The type for copy errors.

val pp_error : error Fmt.t

pp_error pretty-prints errors.

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

copy clock 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.

OCaml

Innovation. Community. Security.