module File_descr = Core.Unix.File_descrmodule Kind : sig ... endmodule State : sig ... endval sexp_of_ready_to_result : ready_to_result ‑> Sexplib.Sexp.tmodule Watching : sig ... endmodule T : sig ... endinclude Ttype t = {file_descr : File_descr.t; |
mutable info : Core.Info.t; |
mutable kind : Kind.t; |
mutable supports_nonblock : bool; |
mutable have_set_nonblock : bool; |
mutable state : State.t; |
watching : Watching.t Async_unix__.Read_write.Mutable.t; |
mutable watching_has_changed : bool; |
mutable num_active_syscalls : int; |
close_finished : unit Async_unix__.Import.Ivar.t; |
}val close_finished : t ‑> unit Async_unix__.Import.Ivar.tval num_active_syscalls : t ‑> intval set_num_active_syscalls : t ‑> int ‑> unitval watching_has_changed : t ‑> boolval set_watching_has_changed : t ‑> bool ‑> unitval watching : t ‑> Watching.t Async_unix__.Read_write.Mutable.tval have_set_nonblock : t ‑> boolval set_have_set_nonblock : t ‑> bool ‑> unitval supports_nonblock : t ‑> boolval set_supports_nonblock : t ‑> bool ‑> unitval info : t ‑> Core.Info.tval set_info : t ‑> Core.Info.t ‑> unitval file_descr : t ‑> File_descr.tmodule Fields = T.Fieldsval sexp_of_t : t ‑> Sexplib.Sexp.tval invariant : t ‑> unitval to_int : t ‑> intval create : ?avoid_nonblock_if_possible:bool ‑> Kind.t ‑> File_descr.t ‑> Core.Info.t ‑> tval inc_num_active_syscalls : t ‑> [> `Already_closed | `Ok ]val is_open : t ‑> boolval is_closed : t ‑> boolval set_nonblock_if_necessary : ?nonblocking:bool ‑> t ‑> unitval with_file_descr_exn : ?nonblocking:bool ‑> t ‑> (File_descr.t ‑> 'a) ‑> 'aval with_file_descr : ?nonblocking:bool ‑> t ‑> (File_descr.t ‑> 'a) ‑> [> `Already_closed | `Error of exn | `Ok of 'a ]val syscall : ?nonblocking:bool ‑> t ‑> (File_descr.t ‑> 'a) ‑> [> `Already_closed | `Error of exn | `Ok of 'a ]val syscall_exn : ?nonblocking:bool ‑> t ‑> (File_descr.t ‑> 'a) ‑> 'aval syscall_result_exn : ?nonblocking:bool ‑> t ‑> 'a ‑> (File_descr.t ‑> 'a ‑> 'b Async_unix__.Syscall.Syscall_result.t) ‑> 'b Async_unix__.Syscall.Syscall_result.t