package mirage-flow
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Flow implementations and combinators for MirageOS
Install
dune-project
Dependency
Authors
Maintainers
Sources
mirage-flow-5.0.0.tbz
sha256=37ca79cae0ed9b270b87712edcb397a5dec4ab39357b28107e00daa6c8553323
sha512=3cf9ebd09ce6e29f9f99a00bf47d2962ccd0e6627b0cdb407538c491480102211bde863d342624cdd4bdb2e1b198b8bf5b2109f881e8113210468ad5b5aa8632
doc/src/mirage-flow/mirage_flow.ml.html
Source file mirage_flow.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41(* * Copyright (C) 2016-present David Scott <dave.scott@docker.com> * Copyright (c) 2011-present Anil Madhavapeddy <anil@recoil.org> * Copyright (c) 2013-present Thomas Gazagnaire <thomas@gazagnaire.org> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. *) type write_error = [ `Closed ] let pp_write_error ppf = function | `Closed -> Fmt.pf ppf "attempted to write to a closed flow" type 'a or_eof = [`Data of 'a | `Eof ] let pp_or_eof d ppf = function | `Data a -> d ppf a | `Eof -> Fmt.string ppf "End-of-file" module type S = sig type error val pp_error: error Fmt.t type nonrec write_error = private [> write_error ] val pp_write_error: write_error Fmt.t type flow val read: flow -> (Cstruct.t or_eof, error) result Lwt.t val write: flow -> Cstruct.t -> (unit, write_error) result Lwt.t val writev: flow -> Cstruct.t list -> (unit, write_error) result Lwt.t val shutdown : flow -> [ `read | `write | `read_write ] -> unit Lwt.t val close: flow -> unit Lwt.t end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>