type error = [ | `Tls_alert of Tls.Packet.alert_type| `Tls_failure of Tls.Engine.failure| `Read of TCP.error| `Write of TCP.write_error
]type write_error = [ | `Closed| error
]include Mirage_flow.S
with type error := error
and type write_error := write_error
val pp_error : error Fmt.tval read : flow -> (Cstruct.t Mirage_flow.or_eof, error) Stdlib.result Lwt.tval writev : flow -> Cstruct.t list -> (unit, write_error) Stdlib.result Lwt.tval shutdown : flow -> [ `read | `read_write | `write ] -> unit Lwt.tval close : flow -> unit Lwt.tval no_close : flow -> unitval to_close : flow -> unitval epoch : flow -> (Tls.Core.epoch_data, unit) Stdlib.resultval reneg :
?authenticator:X509.Authenticator.t ->
?acceptable_cas:X509.Distinguished_name.t list ->
?cert:Tls.Config.own_cert ->
?drop:bool ->
flow ->
(unit, [ write_error | `Msg of string ]) Stdlib.result Lwt.tval key_update :
?request:bool ->
flow ->
(unit, [ write_error | `Msg of string ]) Stdlib.result Lwt.tval client_of_flow :
Tls.Config.client ->
?host:[ `host ] Domain_name.t ->
TCP.flow ->
(flow, write_error) Stdlib.result Lwt.t