Module rustuv::uvll[src]
Low-level bindings to the libuv library.
This module contains a set of direct, 'bare-metal' wrappers around the libuv C-API.
We're not bothering yet to redefine uv's structs as Rust structs
because they are quite large and change often between versions.
The maintenance burden is just too high. Instead we use the uv's
uv_handle_size and uv_req_size to find the correct size of the
structs and allocate them on the heap. This can be revisited later.
There are also a collection of helper functions to ease interacting with the low-level API.
As new functionality, existent in uv.h, is added to the rust stdlib, the mappings should be added in this module.
Reexports
pub use self::errors::{EACCES, ECONNREFUSED, ECONNRESET, EPIPE, ECONNABORTED, ECANCELED, EBADF, ENOTCONN, ENOENT, EADDRNOTAVAIL, EADDRINUSE}; |
Modules
| errors |
Structs
| uv_buf_t | |
| uv_process_options_t | |
| uv_stat_t | |
| uv_stdio_container_t | |
| uv_timespec_t |
Enums
| uv_handle_type | |
| uv_membership | |
| uv_req_type | |
| uv_run_mode |
Statics
pub static EOF: c_int = -4095 |
|
pub static OK: c_int = 0 |
|
pub static PROCESS_DETACHED: c_int = 1 << 3 |
|
pub static PROCESS_SETGID: c_int = 1 << 1 |
|
pub static PROCESS_SETUID: c_int = 1 << 0 |
|
pub static PROCESS_WINDOWS_HIDE: c_int = 1 << 4 |
|
pub static PROCESS_WINDOWS_VERBATIM_ARGUMENTS: c_int = 1 << 2 |
|
pub static STDIO_CREATE_PIPE: c_int = 0x01 |
|
pub static STDIO_IGNORE: c_int = 0x00 |
|
pub static STDIO_INHERIT_FD: c_int = 0x02 |
|
pub static STDIO_INHERIT_STREAM: c_int = 0x04 |
|
pub static STDIO_READABLE_PIPE: c_int = 0x10 |
|
pub static STDIO_WRITABLE_PIPE: c_int = 0x20 |
|
pub static UNKNOWN: c_int = -4094 |