Lines Matching refs:type

4 :c:type:`uv_handle_t` --- Base handle
7 `uv_handle_t` is the base type for all libuv handle types.
10 All API functions defined here work with any handle type.
19 .. c:type:: uv_handle_t
21 The base libuv handle type.
51 .. c:type:: uv_any_handle
55 .. c:type:: void (*uv_alloc_cb)(uv_handle_t* handle, size_t suggested_size, uv_buf_t* buf)
59 :c:type:`uv_buf_t` structure. If NULL is assigned as the buffer's base or 0 as its length,
60 a ``UV_ENOBUFS`` error will be triggered in the :c:type:`uv_udp_recv_cb` or the
61 :c:type:`uv_read_cb` callback.
64 :c:type:`uv_udp_recv_cb` or the :c:type:`uv_read_cb` callback.
83 .. c:type:: void (*uv_close_cb)(uv_handle_t* handle)
93 Pointer to the :c:type:`uv_loop_t` the handle is running on. Readonly.
95 .. c:member:: uv_handle_type uv_handle_t.type
97 The :c:enum:`uv_handle_type`, indicating the type of the underlying handle. Readonly.
112 `UV_` prefix, and the name of the corresponding structure type
118 "active" means depends on the type of handle:
130 Rule of thumb: if a handle of type `uv_foo_t` has a `uv_foo_start()`
179 .. c:function:: size_t uv_handle_size(uv_handle_type type)
181 Returns the size of the given handle type. Useful for FFI binding writers
188 The following API functions take a :c:type:`uv_handle_t` argument but they work
230 any other handle type will fail with `UV_EINVAL`.
259 Returns `handle->type`.
263 .. c:function:: const char* uv_handle_type_name(uv_handle_type type)
265 Returns the name for the equivalent struct for a given handle type,
266 e.g. `"pipe"` (as in :c:type:`uv_pipe_t`) for `UV_NAMED_PIPE`.
268 If no such handle type exists, this returns `NULL`.