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  

Foreign Functions

uv_accept
uv_async_init
uv_async_send
uv_buf_init
uv_close
uv_err_name
uv_freeaddrinfo
uv_fs_chmod
uv_fs_chown
uv_fs_close
uv_fs_fdatasync
uv_fs_fstat
uv_fs_fsync
uv_fs_ftruncate
uv_fs_link
uv_fs_lstat
uv_fs_mkdir
uv_fs_open
uv_fs_read
uv_fs_readdir
uv_fs_readlink
uv_fs_rename
uv_fs_req_cleanup
uv_fs_rmdir
uv_fs_stat
uv_fs_symlink
uv_fs_unlink
uv_fs_utime
uv_fs_write
uv_getaddrinfo
uv_handle_size
uv_idle_init
uv_idle_start
uv_idle_stop
uv_kill
uv_listen
uv_loop_delete
uv_pipe_bind
uv_pipe_connect
uv_pipe_init
uv_pipe_open
uv_process_kill
uv_read_start
uv_read_stop
uv_ref
uv_req_size
uv_run
uv_shutdown
uv_signal_init
uv_signal_start
uv_signal_stop
uv_spawn
uv_strerror
uv_tcp_bind
uv_tcp_connect
uv_tcp_getpeername
uv_tcp_getsockname
uv_tcp_init
uv_tcp_keepalive
uv_tcp_nodelay
uv_tcp_simultaneous_accepts
uv_timer_init
uv_timer_start
uv_timer_stop
uv_tty_get_winsize
uv_tty_init
uv_tty_set_mode
uv_udp_bind
uv_udp_getsockname
uv_udp_init
uv_udp_recv_start
uv_udp_recv_stop
uv_udp_set_broadcast
uv_udp_set_membership
uv_udp_set_multicast_loop
uv_udp_set_multicast_ttl
uv_udp_set_ttl
uv_unref
uv_walk

Functions

free_handle
free_req
get_data_for_req
get_data_for_uv_handle
get_data_for_uv_loop
get_loop_for_uv_handle
get_loop_from_fs_req
get_loop_from_getaddrinfo_req
get_path_from_fs_req
get_ptr_from_fs_req
get_result_from_fs_req
get_stream_handle_from_connect_req
get_stream_handle_from_write_req
get_udp_handle_from_send_req
guess_handle
loop_new
malloc_handle
malloc_req
populate_stat
process_pid
set_data_for_req
set_data_for_uv_handle
set_data_for_uv_loop
set_stdio_container_fd
set_stdio_container_flags
set_stdio_container_stream
uv_udp_send
uv_write

Type Definitions

uv_alloc_cb
uv_async_cb
uv_async_t
uv_buf_len_t
uv_close_cb
uv_connect_cb
uv_connect_t
uv_connection_cb
uv_connection_t
uv_exit_cb
uv_fs_cb
uv_fs_t
uv_getaddrinfo_cb
uv_getaddrinfo_t
uv_gid_t
uv_handle_t
uv_idle_cb
uv_idle_t
uv_loop_t
uv_pipe_t
uv_process_t
uv_read_cb
uv_req_t
uv_shutdown_cb
uv_shutdown_t
uv_signal_cb
uv_signal_t
uv_stream_t
uv_tcp_t
uv_timer_cb
uv_timer_t
uv_tty_t
uv_udp_recv_cb
uv_udp_send_cb
uv_udp_send_t
uv_udp_t
uv_uid_t
uv_walk_cb
uv_write_cb
uv_write_t