Parameters
Signature
type error = [ | `Unix of Unix.error
]val pp_error : Stdlib.Format.formatter -> [< `Unix of Unix.error ] -> unittype write_error = [ | Mirage_flow.write_error| error
]val pp_write_error :
Stdlib.Format.formatter ->
[< `Closed | `Unix of Unix.error ] ->
unittype flow = {fd : RW.t;read_buffers_max : int;read_max : int;mutable read_buffers : Cstruct.t list;mutable read_buffers_len : int;read_buffers_m : Mutex.t;read_buffers_c : Condition.t;read_histogram : Histogram.t;mutable write_buffers : Cstruct.t list;mutable write_buffers_len : int;write_buffers_m : Mutex.t;write_buffers_c : Condition.t;write_buffers_max : int;write_max : int;mutable write_flushed : bool;write_histogram : Histogram.t;mutable closed : bool;mutable shutdown_read : bool;mutable read_thread_exit : bool;mutable shutdown_write : bool;mutable shutdown_write_complete : bool;mutable write_error : bool;
}val connect : ?message_size:int -> ?buffer_size:int -> RW.t -> flowval detach : ('a -> 'b) -> 'a -> 'b Lwt.tval wait_write_flush : flow -> unitval close : flow -> unit Lwt.tval shutdown_read : 'a -> unit Lwt.tval shutdown_write : flow -> unit Lwt.tval wait_for_data_or_eof : flow -> int -> unitval read : flow -> ([> `Data of Cstruct.t | `Eof ], 'a) Stdlib.result Lwt.tval read_into : 'a -> 'b -> 'cval wait_for_space : flow -> int -> unitval writev : flow -> Cstruct.t list -> (unit, [> `Closed ]) Stdlib.result Lwt.tval write : flow -> Cstruct.t -> (unit, [> `Closed ]) Stdlib.result Lwt.t