Crate c_types [−] [src]
A crate that re-exports various types defined in both libc and winapi.
Stop having to write code like this:
ⓘThis example is not tested
#[cfg(unix)] use libc::some_type; #[cfg(windows)] use winapi::some_type;
Instead, write code like this:
ⓘThis example is not tested
use c_types::some_type;
Constants
| AF_INET | |
| AF_INET6 | |
| AF_UNSPEC |
Type Definitions
| fd_set | |
| hostent | |
| in6_addr | |
| in_addr | |
| iovec | |
| sa_family_t | |
| sockaddr | |
| sockaddr_in | |
| sockaddr_in6 | |
| socklen_t |