Module Hvsock_lwt_unix.Flow
type error = [
| `Unix of Unix.error
]
include Mirage_flow.S with type error := error
val pp_error : error Fmt.t
type nonrec write_error = private [>
| Mirage_flow.write_error
]
val read : flow -> (Cstruct.t Mirage_flow.or_eof, error) Stdlib.result Lwt.t
val writev : flow -> Cstruct.t list -> (unit, write_error) Stdlib.result Lwt.t
val shutdown : flow -> [ `read | `read_write | `write ] -> unit Lwt.t
val close : flow -> unit Lwt.t
val connect : ?message_size:int -> ?buffer_size:int -> Socket.t -> flow
val read_into :
flow ->
Cstruct.t ->
(unit Mirage_flow.or_eof, error) Stdlib.result Lwt.t