package async_unix

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val debug : bool
module File_descr = Core.Unix.File_descr
module Kind : sig ... end
module State : sig ... end
type ready_to_result = [
  1. | `Ready
  2. | `Bad_fd
  3. | `Closed
  4. | `Interrupted
]
val sexp_of_ready_to_result : ready_to_result -> Sexplib.Sexp.t
module Watching : sig ... end
module T : sig ... end
include module type of struct include T end
type t = T.t = {
  1. file_descr : File_descr.t;
  2. mutable info : Core.Info.t;
  3. mutable kind : Kind.t;
  4. mutable supports_nonblock : bool;
  5. mutable have_set_nonblock : bool;
  6. mutable state : State.t;
  7. watching : Watching.t Read_write.Mutable.t;
  8. mutable watching_has_changed : bool;
  9. mutable num_active_syscalls : int;
  10. close_finished : unit Async_unix.Import.Ivar.t;
}
val close_finished : t -> unit Async_unix.Import.Ivar.t
val num_active_syscalls : t -> int
val set_num_active_syscalls : t -> int -> unit
val watching_has_changed : t -> bool
val set_watching_has_changed : t -> bool -> unit
val state : t -> State.t
val have_set_nonblock : t -> bool
val set_have_set_nonblock : t -> bool -> unit
val supports_nonblock : t -> bool
val set_supports_nonblock : t -> bool -> unit
val kind : t -> Kind.t
val set_kind : t -> Kind.t -> unit
val info : t -> Core.Info.t
val set_info : t -> Core.Info.t -> unit
val file_descr : t -> File_descr.t
module Fields = T.Fields
val sexp_of_t : t -> Sexplib.Sexp.t
val equal : t -> t -> bool
val invariant : t -> unit
val to_int : t -> int
val create : ?avoid_nonblock_if_possible:bool -> Kind.t -> File_descr.t -> Core.Info.t -> t
val inc_num_active_syscalls : t -> [> `Already_closed | `Ok ]
val set_state : t -> State.t -> unit
val is_open : t -> bool
val is_closed : t -> bool
val set_nonblock_if_necessary : ?nonblocking:bool -> t -> unit
val with_file_descr_exn : ?nonblocking:bool -> t -> (File_descr.t -> 'a) -> 'a
val 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) -> 'a
val 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
OCaml

Innovation. Community. Security.