eio.unix
Eio_unix.Resource
Eio resources backed by an OS file descriptor.
eio
eio.core
eio.mock
eio.runtime_events
eio.utils
type 'a t = [> `Unix_fd ] as 'a Eio.Resource.t
Resources that have FDs are tagged with `Unix_fd.
`Unix_fd
type Eio.Resource.pi +=
| T : ('t, 't -> Fd.t, [> `Unix_fd ]) Eio.Resource.pi
val fd : _ t -> Fd.t
fd t returns the FD being wrapped by a resource.
fd t
val fd_opt : _ Eio.Resource.t -> Fd.t option
fd_opt t returns the FD being wrapped by a generic resource, if any.
fd_opt t
This just probes t using FD.
t
FD