#[repr(C)]
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct __BindgenBitfieldUnit<Storage> {
storage: Storage,
}
impl<Storage> __BindgenBitfieldUnit<Storage> {
#[inline]
pub const fn new(storage: Storage) -> Self {
Self { storage }
}
}
impl<Storage> __BindgenBitfieldUnit<Storage>
where
Storage: AsRef<[u8]> + AsMut<[u8]>,
{
#[inline]
pub fn get_bit(&self, index: usize) -> bool {
debug_assert!(index / 8 < self.storage.as_ref().len());
let byte_index = index / 8;
let byte = self.storage.as_ref()[byte_index];
let bit_index = if cfg!(target_endian = "big") {
7 - (index % 8)
} else {
index % 8
};
let mask = 1 << bit_index;
byte & mask == mask
}
#[inline]
pub fn set_bit(&mut self, index: usize, val: bool) {
debug_assert!(index / 8 < self.storage.as_ref().len());
let byte_index = index / 8;
let byte = &mut self.storage.as_mut()[byte_index];
let bit_index = if cfg!(target_endian = "big") {
7 - (index % 8)
} else {
index % 8
};
let mask = 1 << bit_index;
if val {
*byte |= mask;
} else {
*byte &= !mask;
}
}
#[inline]
pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 {
debug_assert!(bit_width <= 64);
debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
let mut val = 0;
for i in 0..(bit_width as usize) {
if self.get_bit(i + bit_offset) {
let index = if cfg!(target_endian = "big") {
bit_width as usize - 1 - i
} else {
i
};
val |= 1 << index;
}
}
val
}
#[inline]
pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) {
debug_assert!(bit_width <= 64);
debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
for i in 0..(bit_width as usize) {
let mask = 1 << i;
let val_bit_is_set = val & mask == mask;
let index = if cfg!(target_endian = "big") {
bit_width as usize - 1 - i
} else {
i
};
self.set_bit(index + bit_offset, val_bit_is_set);
}
}
}
pub const UV__EOF: i32 = -4095;
pub const UV__UNKNOWN: i32 = -4094;
pub const UV__EAI_ADDRFAMILY: i32 = -3000;
pub const UV__EAI_AGAIN: i32 = -3001;
pub const UV__EAI_BADFLAGS: i32 = -3002;
pub const UV__EAI_CANCELED: i32 = -3003;
pub const UV__EAI_FAIL: i32 = -3004;
pub const UV__EAI_FAMILY: i32 = -3005;
pub const UV__EAI_MEMORY: i32 = -3006;
pub const UV__EAI_NODATA: i32 = -3007;
pub const UV__EAI_NONAME: i32 = -3008;
pub const UV__EAI_OVERFLOW: i32 = -3009;
pub const UV__EAI_SERVICE: i32 = -3010;
pub const UV__EAI_SOCKTYPE: i32 = -3011;
pub const UV__EAI_BADHINTS: i32 = -3013;
pub const UV__EAI_PROTOCOL: i32 = -3014;
pub const UV__E2BIG: i32 = -4093;
pub const UV__EACCES: i32 = -4092;
pub const UV__EADDRINUSE: i32 = -4091;
pub const UV__EADDRNOTAVAIL: i32 = -4090;
pub const UV__EAFNOSUPPORT: i32 = -4089;
pub const UV__EAGAIN: i32 = -4088;
pub const UV__EALREADY: i32 = -4084;
pub const UV__EBADF: i32 = -4083;
pub const UV__EBUSY: i32 = -4082;
pub const UV__ECANCELED: i32 = -4081;
pub const UV__ECHARSET: i32 = -4080;
pub const UV__ECONNABORTED: i32 = -4079;
pub const UV__ECONNREFUSED: i32 = -4078;
pub const UV__ECONNRESET: i32 = -4077;
pub const UV__EDESTADDRREQ: i32 = -4076;
pub const UV__EEXIST: i32 = -4075;
pub const UV__EFAULT: i32 = -4074;
pub const UV__EHOSTUNREACH: i32 = -4073;
pub const UV__EINTR: i32 = -4072;
pub const UV__EINVAL: i32 = -4071;
pub const UV__EIO: i32 = -4070;
pub const UV__EISCONN: i32 = -4069;
pub const UV__EISDIR: i32 = -4068;
pub const UV__ELOOP: i32 = -4067;
pub const UV__EMFILE: i32 = -4066;
pub const UV__EMSGSIZE: i32 = -4065;
pub const UV__ENAMETOOLONG: i32 = -4064;
pub const UV__ENETDOWN: i32 = -4063;
pub const UV__ENETUNREACH: i32 = -4062;
pub const UV__ENFILE: i32 = -4061;
pub const UV__ENOBUFS: i32 = -4060;
pub const UV__ENODEV: i32 = -4059;
pub const UV__ENOENT: i32 = -4058;
pub const UV__ENOMEM: i32 = -4057;
pub const UV__ENONET: i32 = -4056;
pub const UV__ENOSPC: i32 = -4055;
pub const UV__ENOSYS: i32 = -4054;
pub const UV__ENOTCONN: i32 = -4053;
pub const UV__ENOTDIR: i32 = -4052;
pub const UV__ENOTEMPTY: i32 = -4051;
pub const UV__ENOTSOCK: i32 = -4050;
pub const UV__ENOTSUP: i32 = -4049;
pub const UV__EPERM: i32 = -4048;
pub const UV__EPIPE: i32 = -4047;
pub const UV__EPROTO: i32 = -4046;
pub const UV__EPROTONOSUPPORT: i32 = -4045;
pub const UV__EPROTOTYPE: i32 = -4044;
pub const UV__EROFS: i32 = -4043;
pub const UV__ESHUTDOWN: i32 = -4042;
pub const UV__ESPIPE: i32 = -4041;
pub const UV__ESRCH: i32 = -4040;
pub const UV__ETIMEDOUT: i32 = -4039;
pub const UV__ETXTBSY: i32 = -4038;
pub const UV__EXDEV: i32 = -4037;
pub const UV__EFBIG: i32 = -4036;
pub const UV__ENOPROTOOPT: i32 = -4035;
pub const UV__ERANGE: i32 = -4034;
pub const UV__ENXIO: i32 = -4033;
pub const UV__EMLINK: i32 = -4032;
pub const UV__EHOSTDOWN: i32 = -4031;
pub const UV__EREMOTEIO: i32 = -4030;
pub const UV__ENOTTY: i32 = -4029;
pub const UV__EFTYPE: i32 = -4028;
pub const UV__EILSEQ: i32 = -4027;
pub const UV__EOVERFLOW: i32 = -4026;
pub const UV__ESOCKTNOSUPPORT: i32 = -4025;
pub const UV__ENODATA: i32 = -4024;
pub const UV__EUNATCH: i32 = -4023;
pub const UV_VERSION_MAJOR: u32 = 1;
pub const UV_VERSION_MINOR: u32 = 48;
pub const UV_VERSION_PATCH: u32 = 0;
pub const UV_VERSION_IS_RELEASE: u32 = 1;
pub const UV_VERSION_SUFFIX: &[u8; 1] = b"\0";
pub const UV_VERSION_HEX: u32 = 77824;
pub const UV_MSAFD_PROVIDER_COUNT: u32 = 4;
pub const UV_FS_O_APPEND: u32 = 8;
pub const UV_FS_O_CREAT: u32 = 256;
pub const UV_FS_O_EXCL: u32 = 1024;
pub const UV_FS_O_FILEMAP: u32 = 536870912;
pub const UV_FS_O_RANDOM: u32 = 16;
pub const UV_FS_O_RDONLY: u32 = 0;
pub const UV_FS_O_RDWR: u32 = 2;
pub const UV_FS_O_SEQUENTIAL: u32 = 32;
pub const UV_FS_O_SHORT_LIVED: u32 = 4096;
pub const UV_FS_O_TEMPORARY: u32 = 64;
pub const UV_FS_O_TRUNC: u32 = 512;
pub const UV_FS_O_WRONLY: u32 = 1;
pub const UV_FS_O_DIRECT: u32 = 33554432;
pub const UV_FS_O_DIRECTORY: u32 = 0;
pub const UV_FS_O_DSYNC: u32 = 67108864;
pub const UV_FS_O_EXLOCK: u32 = 268435456;
pub const UV_FS_O_NOATIME: u32 = 0;
pub const UV_FS_O_NOCTTY: u32 = 0;
pub const UV_FS_O_NOFOLLOW: u32 = 0;
pub const UV_FS_O_NONBLOCK: u32 = 0;
pub const UV_FS_O_SYMLINK: u32 = 0;
pub const UV_FS_O_SYNC: u32 = 134217728;
pub const UV_PRIORITY_LOW: u32 = 19;
pub const UV_PRIORITY_BELOW_NORMAL: u32 = 10;
pub const UV_PRIORITY_NORMAL: u32 = 0;
pub const UV_PRIORITY_ABOVE_NORMAL: i32 = -7;
pub const UV_PRIORITY_HIGH: i32 = -14;
pub const UV_PRIORITY_HIGHEST: i32 = -20;
pub const UV_MAXHOSTNAMESIZE: u32 = 256;
pub const UV_FS_COPYFILE_EXCL: u32 = 1;
pub const UV_FS_COPYFILE_FICLONE: u32 = 2;
pub const UV_FS_COPYFILE_FICLONE_FORCE: u32 = 4;
pub const UV_FS_SYMLINK_DIR: u32 = 1;
pub const UV_FS_SYMLINK_JUNCTION: u32 = 2;
pub const UV_IF_NAMESIZE: u32 = 17;
pub type wchar_t = ::std::os::raw::c_ushort;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _iobuf {
pub _Placeholder: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _iobuf"][::std::mem::size_of::<_iobuf>() - 8usize];
["Alignment of _iobuf"][::std::mem::align_of::<_iobuf>() - 8usize];
["Offset of field: _iobuf::_Placeholder"][::std::mem::offset_of!(_iobuf, _Placeholder) - 0usize];
};
pub type FILE = _iobuf;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv__queue {
pub next: *mut uv__queue,
pub prev: *mut uv__queue,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv__queue"][::std::mem::size_of::<uv__queue>() - 16usize];
["Alignment of uv__queue"][::std::mem::align_of::<uv__queue>() - 8usize];
["Offset of field: uv__queue::next"][::std::mem::offset_of!(uv__queue, next) - 0usize];
["Offset of field: uv__queue::prev"][::std::mem::offset_of!(uv__queue, prev) - 8usize];
};
pub type ULONG = ::std::os::raw::c_ulong;
pub type USHORT = ::std::os::raw::c_ushort;
pub type UCHAR = ::std::os::raw::c_uchar;
pub type DWORD = ::std::os::raw::c_ulong;
pub type BOOL = ::std::os::raw::c_int;
pub type WORD = ::std::os::raw::c_ushort;
pub type LPINT = *mut ::std::os::raw::c_int;
pub type LPDWORD = *mut DWORD;
pub type UINT = ::std::os::raw::c_uint;
pub type UINT_PTR = ::std::os::raw::c_ulonglong;
pub type ULONG_PTR = ::std::os::raw::c_ulonglong;
pub type PVOID = *mut ::std::os::raw::c_void;
pub type CHAR = ::std::os::raw::c_char;
pub type SHORT = ::std::os::raw::c_short;
pub type LONG = ::std::os::raw::c_long;
pub type WCHAR = wchar_t;
pub type PWSTR = *mut WCHAR;
pub type HANDLE = *mut ::std::os::raw::c_void;
pub type LONGLONG = ::std::os::raw::c_longlong;
#[repr(C)]
#[derive(Copy, Clone)]
pub union _LARGE_INTEGER {
pub __bindgen_anon_1: _LARGE_INTEGER__bindgen_ty_1,
pub u: _LARGE_INTEGER__bindgen_ty_2,
pub QuadPart: LONGLONG,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _LARGE_INTEGER__bindgen_ty_1 {
pub LowPart: DWORD,
pub HighPart: LONG,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _LARGE_INTEGER__bindgen_ty_1"]
[::std::mem::size_of::<_LARGE_INTEGER__bindgen_ty_1>() - 8usize];
["Alignment of _LARGE_INTEGER__bindgen_ty_1"]
[::std::mem::align_of::<_LARGE_INTEGER__bindgen_ty_1>() - 4usize];
["Offset of field: _LARGE_INTEGER__bindgen_ty_1::LowPart"]
[::std::mem::offset_of!(_LARGE_INTEGER__bindgen_ty_1, LowPart) - 0usize];
["Offset of field: _LARGE_INTEGER__bindgen_ty_1::HighPart"]
[::std::mem::offset_of!(_LARGE_INTEGER__bindgen_ty_1, HighPart) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _LARGE_INTEGER__bindgen_ty_2 {
pub LowPart: DWORD,
pub HighPart: LONG,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _LARGE_INTEGER__bindgen_ty_2"]
[::std::mem::size_of::<_LARGE_INTEGER__bindgen_ty_2>() - 8usize];
["Alignment of _LARGE_INTEGER__bindgen_ty_2"]
[::std::mem::align_of::<_LARGE_INTEGER__bindgen_ty_2>() - 4usize];
["Offset of field: _LARGE_INTEGER__bindgen_ty_2::LowPart"]
[::std::mem::offset_of!(_LARGE_INTEGER__bindgen_ty_2, LowPart) - 0usize];
["Offset of field: _LARGE_INTEGER__bindgen_ty_2::HighPart"]
[::std::mem::offset_of!(_LARGE_INTEGER__bindgen_ty_2, HighPart) - 4usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _LARGE_INTEGER"][::std::mem::size_of::<_LARGE_INTEGER>() - 8usize];
["Alignment of _LARGE_INTEGER"][::std::mem::align_of::<_LARGE_INTEGER>() - 8usize];
["Offset of field: _LARGE_INTEGER::u"][::std::mem::offset_of!(_LARGE_INTEGER, u) - 0usize];
["Offset of field: _LARGE_INTEGER::QuadPart"]
[::std::mem::offset_of!(_LARGE_INTEGER, QuadPart) - 0usize];
};
pub type LARGE_INTEGER = _LARGE_INTEGER;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _LIST_ENTRY {
pub Flink: *mut _LIST_ENTRY,
pub Blink: *mut _LIST_ENTRY,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _LIST_ENTRY"][::std::mem::size_of::<_LIST_ENTRY>() - 16usize];
["Alignment of _LIST_ENTRY"][::std::mem::align_of::<_LIST_ENTRY>() - 8usize];
["Offset of field: _LIST_ENTRY::Flink"][::std::mem::offset_of!(_LIST_ENTRY, Flink) - 0usize];
["Offset of field: _LIST_ENTRY::Blink"][::std::mem::offset_of!(_LIST_ENTRY, Blink) - 8usize];
};
pub type LIST_ENTRY = _LIST_ENTRY;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _RTL_CRITICAL_SECTION_DEBUG {
pub Type: WORD,
pub CreatorBackTraceIndex: WORD,
pub CriticalSection: *mut _RTL_CRITICAL_SECTION,
pub ProcessLocksList: LIST_ENTRY,
pub EntryCount: DWORD,
pub ContentionCount: DWORD,
pub Flags: DWORD,
pub CreatorBackTraceIndexHigh: WORD,
pub Identifier: WORD,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _RTL_CRITICAL_SECTION_DEBUG"]
[::std::mem::size_of::<_RTL_CRITICAL_SECTION_DEBUG>() - 48usize];
["Alignment of _RTL_CRITICAL_SECTION_DEBUG"]
[::std::mem::align_of::<_RTL_CRITICAL_SECTION_DEBUG>() - 8usize];
["Offset of field: _RTL_CRITICAL_SECTION_DEBUG::Type"]
[::std::mem::offset_of!(_RTL_CRITICAL_SECTION_DEBUG, Type) - 0usize];
["Offset of field: _RTL_CRITICAL_SECTION_DEBUG::CreatorBackTraceIndex"]
[::std::mem::offset_of!(_RTL_CRITICAL_SECTION_DEBUG, CreatorBackTraceIndex) - 2usize];
["Offset of field: _RTL_CRITICAL_SECTION_DEBUG::CriticalSection"]
[::std::mem::offset_of!(_RTL_CRITICAL_SECTION_DEBUG, CriticalSection) - 8usize];
["Offset of field: _RTL_CRITICAL_SECTION_DEBUG::ProcessLocksList"]
[::std::mem::offset_of!(_RTL_CRITICAL_SECTION_DEBUG, ProcessLocksList) - 16usize];
["Offset of field: _RTL_CRITICAL_SECTION_DEBUG::EntryCount"]
[::std::mem::offset_of!(_RTL_CRITICAL_SECTION_DEBUG, EntryCount) - 32usize];
["Offset of field: _RTL_CRITICAL_SECTION_DEBUG::ContentionCount"]
[::std::mem::offset_of!(_RTL_CRITICAL_SECTION_DEBUG, ContentionCount) - 36usize];
["Offset of field: _RTL_CRITICAL_SECTION_DEBUG::Flags"]
[::std::mem::offset_of!(_RTL_CRITICAL_SECTION_DEBUG, Flags) - 40usize];
["Offset of field: _RTL_CRITICAL_SECTION_DEBUG::CreatorBackTraceIndexHigh"]
[::std::mem::offset_of!(_RTL_CRITICAL_SECTION_DEBUG, CreatorBackTraceIndexHigh) - 44usize];
["Offset of field: _RTL_CRITICAL_SECTION_DEBUG::Identifier"]
[::std::mem::offset_of!(_RTL_CRITICAL_SECTION_DEBUG, Identifier) - 46usize];
};
pub type PRTL_CRITICAL_SECTION_DEBUG = *mut _RTL_CRITICAL_SECTION_DEBUG;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _RTL_CRITICAL_SECTION {
pub DebugInfo: PRTL_CRITICAL_SECTION_DEBUG,
pub LockCount: LONG,
pub RecursionCount: LONG,
pub OwningThread: HANDLE,
pub LockSemaphore: HANDLE,
pub SpinCount: ULONG_PTR,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _RTL_CRITICAL_SECTION"][::std::mem::size_of::<_RTL_CRITICAL_SECTION>() - 40usize];
["Alignment of _RTL_CRITICAL_SECTION"][::std::mem::align_of::<_RTL_CRITICAL_SECTION>() - 8usize];
["Offset of field: _RTL_CRITICAL_SECTION::DebugInfo"]
[::std::mem::offset_of!(_RTL_CRITICAL_SECTION, DebugInfo) - 0usize];
["Offset of field: _RTL_CRITICAL_SECTION::LockCount"]
[::std::mem::offset_of!(_RTL_CRITICAL_SECTION, LockCount) - 8usize];
["Offset of field: _RTL_CRITICAL_SECTION::RecursionCount"]
[::std::mem::offset_of!(_RTL_CRITICAL_SECTION, RecursionCount) - 12usize];
["Offset of field: _RTL_CRITICAL_SECTION::OwningThread"]
[::std::mem::offset_of!(_RTL_CRITICAL_SECTION, OwningThread) - 16usize];
["Offset of field: _RTL_CRITICAL_SECTION::LockSemaphore"]
[::std::mem::offset_of!(_RTL_CRITICAL_SECTION, LockSemaphore) - 24usize];
["Offset of field: _RTL_CRITICAL_SECTION::SpinCount"]
[::std::mem::offset_of!(_RTL_CRITICAL_SECTION, SpinCount) - 32usize];
};
pub type RTL_CRITICAL_SECTION = _RTL_CRITICAL_SECTION;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _RTL_SRWLOCK {
pub Ptr: PVOID,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _RTL_SRWLOCK"][::std::mem::size_of::<_RTL_SRWLOCK>() - 8usize];
["Alignment of _RTL_SRWLOCK"][::std::mem::align_of::<_RTL_SRWLOCK>() - 8usize];
["Offset of field: _RTL_SRWLOCK::Ptr"][::std::mem::offset_of!(_RTL_SRWLOCK, Ptr) - 0usize];
};
pub type RTL_SRWLOCK = _RTL_SRWLOCK;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _RTL_CONDITION_VARIABLE {
pub Ptr: PVOID,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _RTL_CONDITION_VARIABLE"][::std::mem::size_of::<_RTL_CONDITION_VARIABLE>() - 8usize];
["Alignment of _RTL_CONDITION_VARIABLE"]
[::std::mem::align_of::<_RTL_CONDITION_VARIABLE>() - 8usize];
["Offset of field: _RTL_CONDITION_VARIABLE::Ptr"]
[::std::mem::offset_of!(_RTL_CONDITION_VARIABLE, Ptr) - 0usize];
};
pub type RTL_CONDITION_VARIABLE = _RTL_CONDITION_VARIABLE;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct HINSTANCE__ {
pub unused: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of HINSTANCE__"][::std::mem::size_of::<HINSTANCE__>() - 4usize];
["Alignment of HINSTANCE__"][::std::mem::align_of::<HINSTANCE__>() - 4usize];
["Offset of field: HINSTANCE__::unused"][::std::mem::offset_of!(HINSTANCE__, unused) - 0usize];
};
pub type HINSTANCE = *mut HINSTANCE__;
pub type HMODULE = HINSTANCE;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _FILETIME {
pub dwLowDateTime: DWORD,
pub dwHighDateTime: DWORD,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _FILETIME"][::std::mem::size_of::<_FILETIME>() - 8usize];
["Alignment of _FILETIME"][::std::mem::align_of::<_FILETIME>() - 4usize];
["Offset of field: _FILETIME::dwLowDateTime"]
[::std::mem::offset_of!(_FILETIME, dwLowDateTime) - 0usize];
["Offset of field: _FILETIME::dwHighDateTime"]
[::std::mem::offset_of!(_FILETIME, dwHighDateTime) - 4usize];
};
pub type FILETIME = _FILETIME;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _OVERLAPPED {
pub Internal: ULONG_PTR,
pub InternalHigh: ULONG_PTR,
pub __bindgen_anon_1: _OVERLAPPED__bindgen_ty_1,
pub hEvent: HANDLE,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union _OVERLAPPED__bindgen_ty_1 {
pub __bindgen_anon_1: _OVERLAPPED__bindgen_ty_1__bindgen_ty_1,
pub Pointer: PVOID,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _OVERLAPPED__bindgen_ty_1__bindgen_ty_1 {
pub Offset: DWORD,
pub OffsetHigh: DWORD,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _OVERLAPPED__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::size_of::<_OVERLAPPED__bindgen_ty_1__bindgen_ty_1>() - 8usize];
["Alignment of _OVERLAPPED__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::align_of::<_OVERLAPPED__bindgen_ty_1__bindgen_ty_1>() - 4usize];
["Offset of field: _OVERLAPPED__bindgen_ty_1__bindgen_ty_1::Offset"]
[::std::mem::offset_of!(_OVERLAPPED__bindgen_ty_1__bindgen_ty_1, Offset) - 0usize];
["Offset of field: _OVERLAPPED__bindgen_ty_1__bindgen_ty_1::OffsetHigh"]
[::std::mem::offset_of!(_OVERLAPPED__bindgen_ty_1__bindgen_ty_1, OffsetHigh) - 4usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _OVERLAPPED__bindgen_ty_1"]
[::std::mem::size_of::<_OVERLAPPED__bindgen_ty_1>() - 8usize];
["Alignment of _OVERLAPPED__bindgen_ty_1"]
[::std::mem::align_of::<_OVERLAPPED__bindgen_ty_1>() - 8usize];
["Offset of field: _OVERLAPPED__bindgen_ty_1::Pointer"]
[::std::mem::offset_of!(_OVERLAPPED__bindgen_ty_1, Pointer) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _OVERLAPPED"][::std::mem::size_of::<_OVERLAPPED>() - 32usize];
["Alignment of _OVERLAPPED"][::std::mem::align_of::<_OVERLAPPED>() - 8usize];
["Offset of field: _OVERLAPPED::Internal"]
[::std::mem::offset_of!(_OVERLAPPED, Internal) - 0usize];
["Offset of field: _OVERLAPPED::InternalHigh"]
[::std::mem::offset_of!(_OVERLAPPED, InternalHigh) - 8usize];
["Offset of field: _OVERLAPPED::hEvent"][::std::mem::offset_of!(_OVERLAPPED, hEvent) - 24usize];
};
pub type OVERLAPPED = _OVERLAPPED;
pub type LPOVERLAPPED = *mut _OVERLAPPED;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _WIN32_FIND_DATAW {
pub dwFileAttributes: DWORD,
pub ftCreationTime: FILETIME,
pub ftLastAccessTime: FILETIME,
pub ftLastWriteTime: FILETIME,
pub nFileSizeHigh: DWORD,
pub nFileSizeLow: DWORD,
pub dwReserved0: DWORD,
pub dwReserved1: DWORD,
pub cFileName: [WCHAR; 260usize],
pub cAlternateFileName: [WCHAR; 14usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _WIN32_FIND_DATAW"][::std::mem::size_of::<_WIN32_FIND_DATAW>() - 592usize];
["Alignment of _WIN32_FIND_DATAW"][::std::mem::align_of::<_WIN32_FIND_DATAW>() - 4usize];
["Offset of field: _WIN32_FIND_DATAW::dwFileAttributes"]
[::std::mem::offset_of!(_WIN32_FIND_DATAW, dwFileAttributes) - 0usize];
["Offset of field: _WIN32_FIND_DATAW::ftCreationTime"]
[::std::mem::offset_of!(_WIN32_FIND_DATAW, ftCreationTime) - 4usize];
["Offset of field: _WIN32_FIND_DATAW::ftLastAccessTime"]
[::std::mem::offset_of!(_WIN32_FIND_DATAW, ftLastAccessTime) - 12usize];
["Offset of field: _WIN32_FIND_DATAW::ftLastWriteTime"]
[::std::mem::offset_of!(_WIN32_FIND_DATAW, ftLastWriteTime) - 20usize];
["Offset of field: _WIN32_FIND_DATAW::nFileSizeHigh"]
[::std::mem::offset_of!(_WIN32_FIND_DATAW, nFileSizeHigh) - 28usize];
["Offset of field: _WIN32_FIND_DATAW::nFileSizeLow"]
[::std::mem::offset_of!(_WIN32_FIND_DATAW, nFileSizeLow) - 32usize];
["Offset of field: _WIN32_FIND_DATAW::dwReserved0"]
[::std::mem::offset_of!(_WIN32_FIND_DATAW, dwReserved0) - 36usize];
["Offset of field: _WIN32_FIND_DATAW::dwReserved1"]
[::std::mem::offset_of!(_WIN32_FIND_DATAW, dwReserved1) - 40usize];
["Offset of field: _WIN32_FIND_DATAW::cFileName"]
[::std::mem::offset_of!(_WIN32_FIND_DATAW, cFileName) - 44usize];
["Offset of field: _WIN32_FIND_DATAW::cAlternateFileName"]
[::std::mem::offset_of!(_WIN32_FIND_DATAW, cAlternateFileName) - 564usize];
};
pub type WIN32_FIND_DATAW = _WIN32_FIND_DATAW;
pub type CRITICAL_SECTION = RTL_CRITICAL_SECTION;
pub type SRWLOCK = RTL_SRWLOCK;
pub type CONDITION_VARIABLE = RTL_CONDITION_VARIABLE;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _COORD {
pub X: SHORT,
pub Y: SHORT,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _COORD"][::std::mem::size_of::<_COORD>() - 4usize];
["Alignment of _COORD"][::std::mem::align_of::<_COORD>() - 2usize];
["Offset of field: _COORD::X"][::std::mem::offset_of!(_COORD, X) - 0usize];
["Offset of field: _COORD::Y"][::std::mem::offset_of!(_COORD, Y) - 2usize];
};
pub type COORD = _COORD;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _KEY_EVENT_RECORD {
pub bKeyDown: BOOL,
pub wRepeatCount: WORD,
pub wVirtualKeyCode: WORD,
pub wVirtualScanCode: WORD,
pub uChar: _KEY_EVENT_RECORD__bindgen_ty_1,
pub dwControlKeyState: DWORD,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union _KEY_EVENT_RECORD__bindgen_ty_1 {
pub UnicodeChar: WCHAR,
pub AsciiChar: CHAR,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _KEY_EVENT_RECORD__bindgen_ty_1"]
[::std::mem::size_of::<_KEY_EVENT_RECORD__bindgen_ty_1>() - 2usize];
["Alignment of _KEY_EVENT_RECORD__bindgen_ty_1"]
[::std::mem::align_of::<_KEY_EVENT_RECORD__bindgen_ty_1>() - 2usize];
["Offset of field: _KEY_EVENT_RECORD__bindgen_ty_1::UnicodeChar"]
[::std::mem::offset_of!(_KEY_EVENT_RECORD__bindgen_ty_1, UnicodeChar) - 0usize];
["Offset of field: _KEY_EVENT_RECORD__bindgen_ty_1::AsciiChar"]
[::std::mem::offset_of!(_KEY_EVENT_RECORD__bindgen_ty_1, AsciiChar) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _KEY_EVENT_RECORD"][::std::mem::size_of::<_KEY_EVENT_RECORD>() - 16usize];
["Alignment of _KEY_EVENT_RECORD"][::std::mem::align_of::<_KEY_EVENT_RECORD>() - 4usize];
["Offset of field: _KEY_EVENT_RECORD::bKeyDown"]
[::std::mem::offset_of!(_KEY_EVENT_RECORD, bKeyDown) - 0usize];
["Offset of field: _KEY_EVENT_RECORD::wRepeatCount"]
[::std::mem::offset_of!(_KEY_EVENT_RECORD, wRepeatCount) - 4usize];
["Offset of field: _KEY_EVENT_RECORD::wVirtualKeyCode"]
[::std::mem::offset_of!(_KEY_EVENT_RECORD, wVirtualKeyCode) - 6usize];
["Offset of field: _KEY_EVENT_RECORD::wVirtualScanCode"]
[::std::mem::offset_of!(_KEY_EVENT_RECORD, wVirtualScanCode) - 8usize];
["Offset of field: _KEY_EVENT_RECORD::uChar"]
[::std::mem::offset_of!(_KEY_EVENT_RECORD, uChar) - 10usize];
["Offset of field: _KEY_EVENT_RECORD::dwControlKeyState"]
[::std::mem::offset_of!(_KEY_EVENT_RECORD, dwControlKeyState) - 12usize];
};
pub type KEY_EVENT_RECORD = _KEY_EVENT_RECORD;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _MOUSE_EVENT_RECORD {
pub dwMousePosition: COORD,
pub dwButtonState: DWORD,
pub dwControlKeyState: DWORD,
pub dwEventFlags: DWORD,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _MOUSE_EVENT_RECORD"][::std::mem::size_of::<_MOUSE_EVENT_RECORD>() - 16usize];
["Alignment of _MOUSE_EVENT_RECORD"][::std::mem::align_of::<_MOUSE_EVENT_RECORD>() - 4usize];
["Offset of field: _MOUSE_EVENT_RECORD::dwMousePosition"]
[::std::mem::offset_of!(_MOUSE_EVENT_RECORD, dwMousePosition) - 0usize];
["Offset of field: _MOUSE_EVENT_RECORD::dwButtonState"]
[::std::mem::offset_of!(_MOUSE_EVENT_RECORD, dwButtonState) - 4usize];
["Offset of field: _MOUSE_EVENT_RECORD::dwControlKeyState"]
[::std::mem::offset_of!(_MOUSE_EVENT_RECORD, dwControlKeyState) - 8usize];
["Offset of field: _MOUSE_EVENT_RECORD::dwEventFlags"]
[::std::mem::offset_of!(_MOUSE_EVENT_RECORD, dwEventFlags) - 12usize];
};
pub type MOUSE_EVENT_RECORD = _MOUSE_EVENT_RECORD;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _WINDOW_BUFFER_SIZE_RECORD {
pub dwSize: COORD,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _WINDOW_BUFFER_SIZE_RECORD"]
[::std::mem::size_of::<_WINDOW_BUFFER_SIZE_RECORD>() - 4usize];
["Alignment of _WINDOW_BUFFER_SIZE_RECORD"]
[::std::mem::align_of::<_WINDOW_BUFFER_SIZE_RECORD>() - 2usize];
["Offset of field: _WINDOW_BUFFER_SIZE_RECORD::dwSize"]
[::std::mem::offset_of!(_WINDOW_BUFFER_SIZE_RECORD, dwSize) - 0usize];
};
pub type WINDOW_BUFFER_SIZE_RECORD = _WINDOW_BUFFER_SIZE_RECORD;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _MENU_EVENT_RECORD {
pub dwCommandId: UINT,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _MENU_EVENT_RECORD"][::std::mem::size_of::<_MENU_EVENT_RECORD>() - 4usize];
["Alignment of _MENU_EVENT_RECORD"][::std::mem::align_of::<_MENU_EVENT_RECORD>() - 4usize];
["Offset of field: _MENU_EVENT_RECORD::dwCommandId"]
[::std::mem::offset_of!(_MENU_EVENT_RECORD, dwCommandId) - 0usize];
};
pub type MENU_EVENT_RECORD = _MENU_EVENT_RECORD;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _FOCUS_EVENT_RECORD {
pub bSetFocus: BOOL,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _FOCUS_EVENT_RECORD"][::std::mem::size_of::<_FOCUS_EVENT_RECORD>() - 4usize];
["Alignment of _FOCUS_EVENT_RECORD"][::std::mem::align_of::<_FOCUS_EVENT_RECORD>() - 4usize];
["Offset of field: _FOCUS_EVENT_RECORD::bSetFocus"]
[::std::mem::offset_of!(_FOCUS_EVENT_RECORD, bSetFocus) - 0usize];
};
pub type FOCUS_EVENT_RECORD = _FOCUS_EVENT_RECORD;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _INPUT_RECORD {
pub EventType: WORD,
pub Event: _INPUT_RECORD__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union _INPUT_RECORD__bindgen_ty_1 {
pub KeyEvent: KEY_EVENT_RECORD,
pub MouseEvent: MOUSE_EVENT_RECORD,
pub WindowBufferSizeEvent: WINDOW_BUFFER_SIZE_RECORD,
pub MenuEvent: MENU_EVENT_RECORD,
pub FocusEvent: FOCUS_EVENT_RECORD,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _INPUT_RECORD__bindgen_ty_1"]
[::std::mem::size_of::<_INPUT_RECORD__bindgen_ty_1>() - 16usize];
["Alignment of _INPUT_RECORD__bindgen_ty_1"]
[::std::mem::align_of::<_INPUT_RECORD__bindgen_ty_1>() - 4usize];
["Offset of field: _INPUT_RECORD__bindgen_ty_1::KeyEvent"]
[::std::mem::offset_of!(_INPUT_RECORD__bindgen_ty_1, KeyEvent) - 0usize];
["Offset of field: _INPUT_RECORD__bindgen_ty_1::MouseEvent"]
[::std::mem::offset_of!(_INPUT_RECORD__bindgen_ty_1, MouseEvent) - 0usize];
["Offset of field: _INPUT_RECORD__bindgen_ty_1::WindowBufferSizeEvent"]
[::std::mem::offset_of!(_INPUT_RECORD__bindgen_ty_1, WindowBufferSizeEvent) - 0usize];
["Offset of field: _INPUT_RECORD__bindgen_ty_1::MenuEvent"]
[::std::mem::offset_of!(_INPUT_RECORD__bindgen_ty_1, MenuEvent) - 0usize];
["Offset of field: _INPUT_RECORD__bindgen_ty_1::FocusEvent"]
[::std::mem::offset_of!(_INPUT_RECORD__bindgen_ty_1, FocusEvent) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _INPUT_RECORD"][::std::mem::size_of::<_INPUT_RECORD>() - 20usize];
["Alignment of _INPUT_RECORD"][::std::mem::align_of::<_INPUT_RECORD>() - 4usize];
["Offset of field: _INPUT_RECORD::EventType"]
[::std::mem::offset_of!(_INPUT_RECORD, EventType) - 0usize];
["Offset of field: _INPUT_RECORD::Event"][::std::mem::offset_of!(_INPUT_RECORD, Event) - 4usize];
};
pub type INPUT_RECORD = _INPUT_RECORD;
pub type NTSTATUS = LONG;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct in_addr {
pub S_un: in_addr__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union in_addr__bindgen_ty_1 {
pub S_un_b: in_addr__bindgen_ty_1__bindgen_ty_1,
pub S_un_w: in_addr__bindgen_ty_1__bindgen_ty_2,
pub S_addr: ULONG,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct in_addr__bindgen_ty_1__bindgen_ty_1 {
pub s_b1: UCHAR,
pub s_b2: UCHAR,
pub s_b3: UCHAR,
pub s_b4: UCHAR,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of in_addr__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::size_of::<in_addr__bindgen_ty_1__bindgen_ty_1>() - 4usize];
["Alignment of in_addr__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::align_of::<in_addr__bindgen_ty_1__bindgen_ty_1>() - 1usize];
["Offset of field: in_addr__bindgen_ty_1__bindgen_ty_1::s_b1"]
[::std::mem::offset_of!(in_addr__bindgen_ty_1__bindgen_ty_1, s_b1) - 0usize];
["Offset of field: in_addr__bindgen_ty_1__bindgen_ty_1::s_b2"]
[::std::mem::offset_of!(in_addr__bindgen_ty_1__bindgen_ty_1, s_b2) - 1usize];
["Offset of field: in_addr__bindgen_ty_1__bindgen_ty_1::s_b3"]
[::std::mem::offset_of!(in_addr__bindgen_ty_1__bindgen_ty_1, s_b3) - 2usize];
["Offset of field: in_addr__bindgen_ty_1__bindgen_ty_1::s_b4"]
[::std::mem::offset_of!(in_addr__bindgen_ty_1__bindgen_ty_1, s_b4) - 3usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct in_addr__bindgen_ty_1__bindgen_ty_2 {
pub s_w1: USHORT,
pub s_w2: USHORT,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of in_addr__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::size_of::<in_addr__bindgen_ty_1__bindgen_ty_2>() - 4usize];
["Alignment of in_addr__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::align_of::<in_addr__bindgen_ty_1__bindgen_ty_2>() - 2usize];
["Offset of field: in_addr__bindgen_ty_1__bindgen_ty_2::s_w1"]
[::std::mem::offset_of!(in_addr__bindgen_ty_1__bindgen_ty_2, s_w1) - 0usize];
["Offset of field: in_addr__bindgen_ty_1__bindgen_ty_2::s_w2"]
[::std::mem::offset_of!(in_addr__bindgen_ty_1__bindgen_ty_2, s_w2) - 2usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of in_addr__bindgen_ty_1"][::std::mem::size_of::<in_addr__bindgen_ty_1>() - 4usize];
["Alignment of in_addr__bindgen_ty_1"][::std::mem::align_of::<in_addr__bindgen_ty_1>() - 4usize];
["Offset of field: in_addr__bindgen_ty_1::S_un_b"]
[::std::mem::offset_of!(in_addr__bindgen_ty_1, S_un_b) - 0usize];
["Offset of field: in_addr__bindgen_ty_1::S_un_w"]
[::std::mem::offset_of!(in_addr__bindgen_ty_1, S_un_w) - 0usize];
["Offset of field: in_addr__bindgen_ty_1::S_addr"]
[::std::mem::offset_of!(in_addr__bindgen_ty_1, S_addr) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of in_addr"][::std::mem::size_of::<in_addr>() - 4usize];
["Alignment of in_addr"][::std::mem::align_of::<in_addr>() - 4usize];
["Offset of field: in_addr::S_un"][::std::mem::offset_of!(in_addr, S_un) - 0usize];
};
pub type IN_ADDR = in_addr;
pub type ADDRESS_FAMILY = USHORT;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sockaddr {
pub sa_family: ADDRESS_FAMILY,
pub sa_data: [CHAR; 14usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of sockaddr"][::std::mem::size_of::<sockaddr>() - 16usize];
["Alignment of sockaddr"][::std::mem::align_of::<sockaddr>() - 2usize];
["Offset of field: sockaddr::sa_family"][::std::mem::offset_of!(sockaddr, sa_family) - 0usize];
["Offset of field: sockaddr::sa_data"][::std::mem::offset_of!(sockaddr, sa_data) - 2usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sockaddr_storage {
pub ss_family: ADDRESS_FAMILY,
pub __ss_pad1: [CHAR; 6usize],
pub __ss_align: ::std::os::raw::c_longlong,
pub __ss_pad2: [CHAR; 112usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of sockaddr_storage"][::std::mem::size_of::<sockaddr_storage>() - 128usize];
["Alignment of sockaddr_storage"][::std::mem::align_of::<sockaddr_storage>() - 8usize];
["Offset of field: sockaddr_storage::ss_family"]
[::std::mem::offset_of!(sockaddr_storage, ss_family) - 0usize];
["Offset of field: sockaddr_storage::__ss_pad1"]
[::std::mem::offset_of!(sockaddr_storage, __ss_pad1) - 2usize];
["Offset of field: sockaddr_storage::__ss_align"]
[::std::mem::offset_of!(sockaddr_storage, __ss_align) - 8usize];
["Offset of field: sockaddr_storage::__ss_pad2"]
[::std::mem::offset_of!(sockaddr_storage, __ss_pad2) - 16usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct SCOPE_ID {
pub __bindgen_anon_1: SCOPE_ID__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union SCOPE_ID__bindgen_ty_1 {
pub __bindgen_anon_1: SCOPE_ID__bindgen_ty_1__bindgen_ty_1,
pub Value: ULONG,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SCOPE_ID__bindgen_ty_1__bindgen_ty_1 {
pub _bitfield_align_1: [u32; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of SCOPE_ID__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::size_of::<SCOPE_ID__bindgen_ty_1__bindgen_ty_1>() - 4usize];
["Alignment of SCOPE_ID__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::align_of::<SCOPE_ID__bindgen_ty_1__bindgen_ty_1>() - 4usize];
};
impl SCOPE_ID__bindgen_ty_1__bindgen_ty_1 {
#[inline]
pub fn Zone(&self) -> ULONG {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 28u8) as u32) }
}
#[inline]
pub fn set_Zone(&mut self, val: ULONG) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 28u8, val as u64)
}
}
#[inline]
pub fn Level(&self) -> ULONG {
unsafe { ::std::mem::transmute(self._bitfield_1.get(28usize, 4u8) as u32) }
}
#[inline]
pub fn set_Level(&mut self, val: ULONG) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(28usize, 4u8, val as u64)
}
}
#[inline]
pub fn new_bitfield_1(Zone: ULONG, Level: ULONG) -> __BindgenBitfieldUnit<[u8; 4usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
__bindgen_bitfield_unit.set(0usize, 28u8, {
let Zone: u32 = unsafe { ::std::mem::transmute(Zone) };
Zone as u64
});
__bindgen_bitfield_unit.set(28usize, 4u8, {
let Level: u32 = unsafe { ::std::mem::transmute(Level) };
Level as u64
});
__bindgen_bitfield_unit
}
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of SCOPE_ID__bindgen_ty_1"][::std::mem::size_of::<SCOPE_ID__bindgen_ty_1>() - 4usize];
["Alignment of SCOPE_ID__bindgen_ty_1"]
[::std::mem::align_of::<SCOPE_ID__bindgen_ty_1>() - 4usize];
["Offset of field: SCOPE_ID__bindgen_ty_1::Value"]
[::std::mem::offset_of!(SCOPE_ID__bindgen_ty_1, Value) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of SCOPE_ID"][::std::mem::size_of::<SCOPE_ID>() - 4usize];
["Alignment of SCOPE_ID"][::std::mem::align_of::<SCOPE_ID>() - 4usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct sockaddr_in {
pub sin_family: ADDRESS_FAMILY,
pub sin_port: USHORT,
pub sin_addr: IN_ADDR,
pub sin_zero: [CHAR; 8usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of sockaddr_in"][::std::mem::size_of::<sockaddr_in>() - 16usize];
["Alignment of sockaddr_in"][::std::mem::align_of::<sockaddr_in>() - 4usize];
["Offset of field: sockaddr_in::sin_family"]
[::std::mem::offset_of!(sockaddr_in, sin_family) - 0usize];
["Offset of field: sockaddr_in::sin_port"]
[::std::mem::offset_of!(sockaddr_in, sin_port) - 2usize];
["Offset of field: sockaddr_in::sin_addr"]
[::std::mem::offset_of!(sockaddr_in, sin_addr) - 4usize];
["Offset of field: sockaddr_in::sin_zero"]
[::std::mem::offset_of!(sockaddr_in, sin_zero) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _WSABUF {
pub len: ULONG,
pub buf: *mut CHAR,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _WSABUF"][::std::mem::size_of::<_WSABUF>() - 16usize];
["Alignment of _WSABUF"][::std::mem::align_of::<_WSABUF>() - 8usize];
["Offset of field: _WSABUF::len"][::std::mem::offset_of!(_WSABUF, len) - 0usize];
["Offset of field: _WSABUF::buf"][::std::mem::offset_of!(_WSABUF, buf) - 8usize];
};
pub type LPWSABUF = *mut _WSABUF;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct addrinfo {
pub ai_flags: ::std::os::raw::c_int,
pub ai_family: ::std::os::raw::c_int,
pub ai_socktype: ::std::os::raw::c_int,
pub ai_protocol: ::std::os::raw::c_int,
pub ai_addrlen: usize,
pub ai_canonname: *mut ::std::os::raw::c_char,
pub ai_addr: *mut sockaddr,
pub ai_next: *mut addrinfo,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of addrinfo"][::std::mem::size_of::<addrinfo>() - 48usize];
["Alignment of addrinfo"][::std::mem::align_of::<addrinfo>() - 8usize];
["Offset of field: addrinfo::ai_flags"][::std::mem::offset_of!(addrinfo, ai_flags) - 0usize];
["Offset of field: addrinfo::ai_family"][::std::mem::offset_of!(addrinfo, ai_family) - 4usize];
["Offset of field: addrinfo::ai_socktype"]
[::std::mem::offset_of!(addrinfo, ai_socktype) - 8usize];
["Offset of field: addrinfo::ai_protocol"]
[::std::mem::offset_of!(addrinfo, ai_protocol) - 12usize];
["Offset of field: addrinfo::ai_addrlen"][::std::mem::offset_of!(addrinfo, ai_addrlen) - 16usize];
["Offset of field: addrinfo::ai_canonname"]
[::std::mem::offset_of!(addrinfo, ai_canonname) - 24usize];
["Offset of field: addrinfo::ai_addr"][::std::mem::offset_of!(addrinfo, ai_addr) - 32usize];
["Offset of field: addrinfo::ai_next"][::std::mem::offset_of!(addrinfo, ai_next) - 40usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct addrinfoW {
pub ai_flags: ::std::os::raw::c_int,
pub ai_family: ::std::os::raw::c_int,
pub ai_socktype: ::std::os::raw::c_int,
pub ai_protocol: ::std::os::raw::c_int,
pub ai_addrlen: usize,
pub ai_canonname: PWSTR,
pub ai_addr: *mut sockaddr,
pub ai_next: *mut addrinfoW,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of addrinfoW"][::std::mem::size_of::<addrinfoW>() - 48usize];
["Alignment of addrinfoW"][::std::mem::align_of::<addrinfoW>() - 8usize];
["Offset of field: addrinfoW::ai_flags"][::std::mem::offset_of!(addrinfoW, ai_flags) - 0usize];
["Offset of field: addrinfoW::ai_family"][::std::mem::offset_of!(addrinfoW, ai_family) - 4usize];
["Offset of field: addrinfoW::ai_socktype"]
[::std::mem::offset_of!(addrinfoW, ai_socktype) - 8usize];
["Offset of field: addrinfoW::ai_protocol"]
[::std::mem::offset_of!(addrinfoW, ai_protocol) - 12usize];
["Offset of field: addrinfoW::ai_addrlen"]
[::std::mem::offset_of!(addrinfoW, ai_addrlen) - 16usize];
["Offset of field: addrinfoW::ai_canonname"]
[::std::mem::offset_of!(addrinfoW, ai_canonname) - 24usize];
["Offset of field: addrinfoW::ai_addr"][::std::mem::offset_of!(addrinfoW, ai_addr) - 32usize];
["Offset of field: addrinfoW::ai_next"][::std::mem::offset_of!(addrinfoW, ai_next) - 40usize];
};
pub type SOCKET = UINT_PTR;
pub type LPWSAOVERLAPPED = *mut _OVERLAPPED;
pub type LPWSAOVERLAPPED_COMPLETION_ROUTINE = ::std::option::Option<
unsafe extern "C" fn(
dwError: DWORD,
cbTransferred: DWORD,
lpOverlapped: LPWSAOVERLAPPED,
dwFlags: DWORD,
),
>;
pub type LPFN_ACCEPTEX = ::std::option::Option<
unsafe extern "C" fn(
sListenSocket: SOCKET,
sAcceptSocket: SOCKET,
lpOutputBuffer: PVOID,
dwReceiveDataLength: DWORD,
dwLocalAddressLength: DWORD,
dwRemoteAddressLength: DWORD,
lpdwBytesReceived: LPDWORD,
lpOverlapped: LPOVERLAPPED,
) -> BOOL,
>;
pub type LPFN_CONNECTEX = ::std::option::Option<
unsafe extern "C" fn(
s: SOCKET,
name: *const sockaddr,
namelen: ::std::os::raw::c_int,
lpSendBuffer: PVOID,
dwSendDataLength: DWORD,
lpdwBytesSent: LPDWORD,
lpOverlapped: LPOVERLAPPED,
) -> BOOL,
>;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct in6_addr {
pub u: in6_addr__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union in6_addr__bindgen_ty_1 {
pub Byte: [UCHAR; 16usize],
pub Word: [USHORT; 8usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of in6_addr__bindgen_ty_1"][::std::mem::size_of::<in6_addr__bindgen_ty_1>() - 16usize];
["Alignment of in6_addr__bindgen_ty_1"]
[::std::mem::align_of::<in6_addr__bindgen_ty_1>() - 2usize];
["Offset of field: in6_addr__bindgen_ty_1::Byte"]
[::std::mem::offset_of!(in6_addr__bindgen_ty_1, Byte) - 0usize];
["Offset of field: in6_addr__bindgen_ty_1::Word"]
[::std::mem::offset_of!(in6_addr__bindgen_ty_1, Word) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of in6_addr"][::std::mem::size_of::<in6_addr>() - 16usize];
["Alignment of in6_addr"][::std::mem::align_of::<in6_addr>() - 2usize];
["Offset of field: in6_addr::u"][::std::mem::offset_of!(in6_addr, u) - 0usize];
};
pub type IN6_ADDR = in6_addr;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct sockaddr_in6 {
pub sin6_family: ADDRESS_FAMILY,
pub sin6_port: USHORT,
pub sin6_flowinfo: ULONG,
pub sin6_addr: IN6_ADDR,
pub __bindgen_anon_1: sockaddr_in6__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union sockaddr_in6__bindgen_ty_1 {
pub sin6_scope_id: ULONG,
pub sin6_scope_struct: SCOPE_ID,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of sockaddr_in6__bindgen_ty_1"]
[::std::mem::size_of::<sockaddr_in6__bindgen_ty_1>() - 4usize];
["Alignment of sockaddr_in6__bindgen_ty_1"]
[::std::mem::align_of::<sockaddr_in6__bindgen_ty_1>() - 4usize];
["Offset of field: sockaddr_in6__bindgen_ty_1::sin6_scope_id"]
[::std::mem::offset_of!(sockaddr_in6__bindgen_ty_1, sin6_scope_id) - 0usize];
["Offset of field: sockaddr_in6__bindgen_ty_1::sin6_scope_struct"]
[::std::mem::offset_of!(sockaddr_in6__bindgen_ty_1, sin6_scope_struct) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of sockaddr_in6"][::std::mem::size_of::<sockaddr_in6>() - 28usize];
["Alignment of sockaddr_in6"][::std::mem::align_of::<sockaddr_in6>() - 4usize];
["Offset of field: sockaddr_in6::sin6_family"]
[::std::mem::offset_of!(sockaddr_in6, sin6_family) - 0usize];
["Offset of field: sockaddr_in6::sin6_port"]
[::std::mem::offset_of!(sockaddr_in6, sin6_port) - 2usize];
["Offset of field: sockaddr_in6::sin6_flowinfo"]
[::std::mem::offset_of!(sockaddr_in6, sin6_flowinfo) - 4usize];
["Offset of field: sockaddr_in6::sin6_addr"]
[::std::mem::offset_of!(sockaddr_in6, sin6_addr) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv__work {
pub work: ::std::option::Option<unsafe extern "C" fn(w: *mut uv__work)>,
pub done:
::std::option::Option<unsafe extern "C" fn(w: *mut uv__work, status: ::std::os::raw::c_int)>,
pub loop_: *mut uv_loop_s,
pub wq: uv__queue,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv__work"][::std::mem::size_of::<uv__work>() - 40usize];
["Alignment of uv__work"][::std::mem::align_of::<uv__work>() - 8usize];
["Offset of field: uv__work::work"][::std::mem::offset_of!(uv__work, work) - 0usize];
["Offset of field: uv__work::done"][::std::mem::offset_of!(uv__work, done) - 8usize];
["Offset of field: uv__work::loop_"][::std::mem::offset_of!(uv__work, loop_) - 16usize];
["Offset of field: uv__work::wq"][::std::mem::offset_of!(uv__work, wq) - 24usize];
};
pub type LPFN_WSARECV = ::std::option::Option<
unsafe extern "C" fn(
socket: SOCKET,
buffers: LPWSABUF,
buffer_count: DWORD,
bytes: LPDWORD,
flags: LPDWORD,
overlapped: LPWSAOVERLAPPED,
completion_routine: LPWSAOVERLAPPED_COMPLETION_ROUTINE,
) -> ::std::os::raw::c_int,
>;
pub type LPFN_WSARECVFROM = ::std::option::Option<
unsafe extern "C" fn(
socket: SOCKET,
buffers: LPWSABUF,
buffer_count: DWORD,
bytes: LPDWORD,
flags: LPDWORD,
addr: *mut sockaddr,
addr_len: LPINT,
overlapped: LPWSAOVERLAPPED,
completion_routine: LPWSAOVERLAPPED_COMPLETION_ROUTINE,
) -> ::std::os::raw::c_int,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _AFD_POLL_HANDLE_INFO {
pub Handle: HANDLE,
pub Events: ULONG,
pub Status: NTSTATUS,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _AFD_POLL_HANDLE_INFO"][::std::mem::size_of::<_AFD_POLL_HANDLE_INFO>() - 16usize];
["Alignment of _AFD_POLL_HANDLE_INFO"][::std::mem::align_of::<_AFD_POLL_HANDLE_INFO>() - 8usize];
["Offset of field: _AFD_POLL_HANDLE_INFO::Handle"]
[::std::mem::offset_of!(_AFD_POLL_HANDLE_INFO, Handle) - 0usize];
["Offset of field: _AFD_POLL_HANDLE_INFO::Events"]
[::std::mem::offset_of!(_AFD_POLL_HANDLE_INFO, Events) - 8usize];
["Offset of field: _AFD_POLL_HANDLE_INFO::Status"]
[::std::mem::offset_of!(_AFD_POLL_HANDLE_INFO, Status) - 12usize];
};
pub type AFD_POLL_HANDLE_INFO = _AFD_POLL_HANDLE_INFO;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _AFD_POLL_INFO {
pub Timeout: LARGE_INTEGER,
pub NumberOfHandles: ULONG,
pub Exclusive: ULONG,
pub Handles: [AFD_POLL_HANDLE_INFO; 1usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _AFD_POLL_INFO"][::std::mem::size_of::<_AFD_POLL_INFO>() - 32usize];
["Alignment of _AFD_POLL_INFO"][::std::mem::align_of::<_AFD_POLL_INFO>() - 8usize];
["Offset of field: _AFD_POLL_INFO::Timeout"]
[::std::mem::offset_of!(_AFD_POLL_INFO, Timeout) - 0usize];
["Offset of field: _AFD_POLL_INFO::NumberOfHandles"]
[::std::mem::offset_of!(_AFD_POLL_INFO, NumberOfHandles) - 8usize];
["Offset of field: _AFD_POLL_INFO::Exclusive"]
[::std::mem::offset_of!(_AFD_POLL_INFO, Exclusive) - 12usize];
["Offset of field: _AFD_POLL_INFO::Handles"]
[::std::mem::offset_of!(_AFD_POLL_INFO, Handles) - 16usize];
};
pub type AFD_POLL_INFO = _AFD_POLL_INFO;
#[doc = " It should be possible to cast uv_buf_t[] to WSABUF[]\n see http://msdn.microsoft.com/en-us/library/ms741542(v=vs.85).aspx"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_buf_t {
pub len: ULONG,
pub base: *mut ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_buf_t"][::std::mem::size_of::<uv_buf_t>() - 16usize];
["Alignment of uv_buf_t"][::std::mem::align_of::<uv_buf_t>() - 8usize];
["Offset of field: uv_buf_t::len"][::std::mem::offset_of!(uv_buf_t, len) - 0usize];
["Offset of field: uv_buf_t::base"][::std::mem::offset_of!(uv_buf_t, base) - 8usize];
};
pub type uv_file = ::std::os::raw::c_int;
pub type uv_os_sock_t = SOCKET;
pub type uv_os_fd_t = HANDLE;
pub type uv_pid_t = ::std::os::raw::c_int;
pub type uv_thread_t = HANDLE;
pub type uv_sem_t = HANDLE;
pub type uv_mutex_t = CRITICAL_SECTION;
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_cond_t {
pub cond_var: CONDITION_VARIABLE,
pub unused_: uv_cond_t__bindgen_ty_1,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_cond_t__bindgen_ty_1 {
pub waiters_count: ::std::os::raw::c_uint,
pub waiters_count_lock: CRITICAL_SECTION,
pub signal_event: HANDLE,
pub broadcast_event: HANDLE,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_cond_t__bindgen_ty_1"][::std::mem::size_of::<uv_cond_t__bindgen_ty_1>() - 64usize];
["Alignment of uv_cond_t__bindgen_ty_1"]
[::std::mem::align_of::<uv_cond_t__bindgen_ty_1>() - 8usize];
["Offset of field: uv_cond_t__bindgen_ty_1::waiters_count"]
[::std::mem::offset_of!(uv_cond_t__bindgen_ty_1, waiters_count) - 0usize];
["Offset of field: uv_cond_t__bindgen_ty_1::waiters_count_lock"]
[::std::mem::offset_of!(uv_cond_t__bindgen_ty_1, waiters_count_lock) - 8usize];
["Offset of field: uv_cond_t__bindgen_ty_1::signal_event"]
[::std::mem::offset_of!(uv_cond_t__bindgen_ty_1, signal_event) - 48usize];
["Offset of field: uv_cond_t__bindgen_ty_1::broadcast_event"]
[::std::mem::offset_of!(uv_cond_t__bindgen_ty_1, broadcast_event) - 56usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_cond_t"][::std::mem::size_of::<uv_cond_t>() - 64usize];
["Alignment of uv_cond_t"][::std::mem::align_of::<uv_cond_t>() - 8usize];
["Offset of field: uv_cond_t::cond_var"][::std::mem::offset_of!(uv_cond_t, cond_var) - 0usize];
["Offset of field: uv_cond_t::unused_"][::std::mem::offset_of!(uv_cond_t, unused_) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_rwlock_t {
pub read_write_lock_: SRWLOCK,
pub padding_: [::std::os::raw::c_uchar; 72usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_rwlock_t"][::std::mem::size_of::<uv_rwlock_t>() - 80usize];
["Alignment of uv_rwlock_t"][::std::mem::align_of::<uv_rwlock_t>() - 8usize];
["Offset of field: uv_rwlock_t::read_write_lock_"]
[::std::mem::offset_of!(uv_rwlock_t, read_write_lock_) - 0usize];
["Offset of field: uv_rwlock_t::padding_"]
[::std::mem::offset_of!(uv_rwlock_t, padding_) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_barrier_t {
pub threshold: ::std::os::raw::c_uint,
pub in_: ::std::os::raw::c_uint,
pub mutex: uv_mutex_t,
pub cond: CONDITION_VARIABLE,
pub out: ::std::os::raw::c_uint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_barrier_t"][::std::mem::size_of::<uv_barrier_t>() - 64usize];
["Alignment of uv_barrier_t"][::std::mem::align_of::<uv_barrier_t>() - 8usize];
["Offset of field: uv_barrier_t::threshold"]
[::std::mem::offset_of!(uv_barrier_t, threshold) - 0usize];
["Offset of field: uv_barrier_t::in_"][::std::mem::offset_of!(uv_barrier_t, in_) - 4usize];
["Offset of field: uv_barrier_t::mutex"][::std::mem::offset_of!(uv_barrier_t, mutex) - 8usize];
["Offset of field: uv_barrier_t::cond"][::std::mem::offset_of!(uv_barrier_t, cond) - 48usize];
["Offset of field: uv_barrier_t::out"][::std::mem::offset_of!(uv_barrier_t, out) - 56usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_key_t {
pub tls_index: DWORD,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_key_t"][::std::mem::size_of::<uv_key_t>() - 4usize];
["Alignment of uv_key_t"][::std::mem::align_of::<uv_key_t>() - 4usize];
["Offset of field: uv_key_t::tls_index"][::std::mem::offset_of!(uv_key_t, tls_index) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_once_s {
pub ran: ::std::os::raw::c_uchar,
pub event: HANDLE,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_once_s"][::std::mem::size_of::<uv_once_s>() - 16usize];
["Alignment of uv_once_s"][::std::mem::align_of::<uv_once_s>() - 8usize];
["Offset of field: uv_once_s::ran"][::std::mem::offset_of!(uv_once_s, ran) - 0usize];
["Offset of field: uv_once_s::event"][::std::mem::offset_of!(uv_once_s, event) - 8usize];
};
pub type uv_once_t = uv_once_s;
pub type uv_uid_t = ::std::os::raw::c_uchar;
pub type uv_gid_t = ::std::os::raw::c_uchar;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv__dirent_s {
pub d_type: ::std::os::raw::c_int,
pub d_name: [::std::os::raw::c_char; 1usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv__dirent_s"][::std::mem::size_of::<uv__dirent_s>() - 8usize];
["Alignment of uv__dirent_s"][::std::mem::align_of::<uv__dirent_s>() - 4usize];
["Offset of field: uv__dirent_s::d_type"][::std::mem::offset_of!(uv__dirent_s, d_type) - 0usize];
["Offset of field: uv__dirent_s::d_name"][::std::mem::offset_of!(uv__dirent_s, d_name) - 4usize];
};
pub type uv__dirent_t = uv__dirent_s;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_lib_t {
pub handle: HMODULE,
pub errmsg: *mut ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_lib_t"][::std::mem::size_of::<uv_lib_t>() - 16usize];
["Alignment of uv_lib_t"][::std::mem::align_of::<uv_lib_t>() - 8usize];
["Offset of field: uv_lib_t::handle"][::std::mem::offset_of!(uv_lib_t, handle) - 0usize];
["Offset of field: uv_lib_t::errmsg"][::std::mem::offset_of!(uv_lib_t, errmsg) - 8usize];
};
impl uv_errno_t {
pub const UV_E2BIG: uv_errno_t = uv_errno_t(-4093);
}
impl uv_errno_t {
pub const UV_EACCES: uv_errno_t = uv_errno_t(-4092);
}
impl uv_errno_t {
pub const UV_EADDRINUSE: uv_errno_t = uv_errno_t(-4091);
}
impl uv_errno_t {
pub const UV_EADDRNOTAVAIL: uv_errno_t = uv_errno_t(-4090);
}
impl uv_errno_t {
pub const UV_EAFNOSUPPORT: uv_errno_t = uv_errno_t(-4089);
}
impl uv_errno_t {
pub const UV_EAGAIN: uv_errno_t = uv_errno_t(-4088);
}
impl uv_errno_t {
pub const UV_EAI_ADDRFAMILY: uv_errno_t = uv_errno_t(-3000);
}
impl uv_errno_t {
pub const UV_EAI_AGAIN: uv_errno_t = uv_errno_t(-3001);
}
impl uv_errno_t {
pub const UV_EAI_BADFLAGS: uv_errno_t = uv_errno_t(-3002);
}
impl uv_errno_t {
pub const UV_EAI_BADHINTS: uv_errno_t = uv_errno_t(-3013);
}
impl uv_errno_t {
pub const UV_EAI_CANCELED: uv_errno_t = uv_errno_t(-3003);
}
impl uv_errno_t {
pub const UV_EAI_FAIL: uv_errno_t = uv_errno_t(-3004);
}
impl uv_errno_t {
pub const UV_EAI_FAMILY: uv_errno_t = uv_errno_t(-3005);
}
impl uv_errno_t {
pub const UV_EAI_MEMORY: uv_errno_t = uv_errno_t(-3006);
}
impl uv_errno_t {
pub const UV_EAI_NODATA: uv_errno_t = uv_errno_t(-3007);
}
impl uv_errno_t {
pub const UV_EAI_NONAME: uv_errno_t = uv_errno_t(-3008);
}
impl uv_errno_t {
pub const UV_EAI_OVERFLOW: uv_errno_t = uv_errno_t(-3009);
}
impl uv_errno_t {
pub const UV_EAI_PROTOCOL: uv_errno_t = uv_errno_t(-3014);
}
impl uv_errno_t {
pub const UV_EAI_SERVICE: uv_errno_t = uv_errno_t(-3010);
}
impl uv_errno_t {
pub const UV_EAI_SOCKTYPE: uv_errno_t = uv_errno_t(-3011);
}
impl uv_errno_t {
pub const UV_EALREADY: uv_errno_t = uv_errno_t(-4084);
}
impl uv_errno_t {
pub const UV_EBADF: uv_errno_t = uv_errno_t(-4083);
}
impl uv_errno_t {
pub const UV_EBUSY: uv_errno_t = uv_errno_t(-4082);
}
impl uv_errno_t {
pub const UV_ECANCELED: uv_errno_t = uv_errno_t(-4081);
}
impl uv_errno_t {
pub const UV_ECHARSET: uv_errno_t = uv_errno_t(-4080);
}
impl uv_errno_t {
pub const UV_ECONNABORTED: uv_errno_t = uv_errno_t(-4079);
}
impl uv_errno_t {
pub const UV_ECONNREFUSED: uv_errno_t = uv_errno_t(-4078);
}
impl uv_errno_t {
pub const UV_ECONNRESET: uv_errno_t = uv_errno_t(-4077);
}
impl uv_errno_t {
pub const UV_EDESTADDRREQ: uv_errno_t = uv_errno_t(-4076);
}
impl uv_errno_t {
pub const UV_EEXIST: uv_errno_t = uv_errno_t(-4075);
}
impl uv_errno_t {
pub const UV_EFAULT: uv_errno_t = uv_errno_t(-4074);
}
impl uv_errno_t {
pub const UV_EFBIG: uv_errno_t = uv_errno_t(-4036);
}
impl uv_errno_t {
pub const UV_EHOSTUNREACH: uv_errno_t = uv_errno_t(-4073);
}
impl uv_errno_t {
pub const UV_EINTR: uv_errno_t = uv_errno_t(-4072);
}
impl uv_errno_t {
pub const UV_EINVAL: uv_errno_t = uv_errno_t(-4071);
}
impl uv_errno_t {
pub const UV_EIO: uv_errno_t = uv_errno_t(-4070);
}
impl uv_errno_t {
pub const UV_EISCONN: uv_errno_t = uv_errno_t(-4069);
}
impl uv_errno_t {
pub const UV_EISDIR: uv_errno_t = uv_errno_t(-4068);
}
impl uv_errno_t {
pub const UV_ELOOP: uv_errno_t = uv_errno_t(-4067);
}
impl uv_errno_t {
pub const UV_EMFILE: uv_errno_t = uv_errno_t(-4066);
}
impl uv_errno_t {
pub const UV_EMSGSIZE: uv_errno_t = uv_errno_t(-4065);
}
impl uv_errno_t {
pub const UV_ENAMETOOLONG: uv_errno_t = uv_errno_t(-4064);
}
impl uv_errno_t {
pub const UV_ENETDOWN: uv_errno_t = uv_errno_t(-4063);
}
impl uv_errno_t {
pub const UV_ENETUNREACH: uv_errno_t = uv_errno_t(-4062);
}
impl uv_errno_t {
pub const UV_ENFILE: uv_errno_t = uv_errno_t(-4061);
}
impl uv_errno_t {
pub const UV_ENOBUFS: uv_errno_t = uv_errno_t(-4060);
}
impl uv_errno_t {
pub const UV_ENODEV: uv_errno_t = uv_errno_t(-4059);
}
impl uv_errno_t {
pub const UV_ENOENT: uv_errno_t = uv_errno_t(-4058);
}
impl uv_errno_t {
pub const UV_ENOMEM: uv_errno_t = uv_errno_t(-4057);
}
impl uv_errno_t {
pub const UV_ENONET: uv_errno_t = uv_errno_t(-4056);
}
impl uv_errno_t {
pub const UV_ENOPROTOOPT: uv_errno_t = uv_errno_t(-4035);
}
impl uv_errno_t {
pub const UV_ENOSPC: uv_errno_t = uv_errno_t(-4055);
}
impl uv_errno_t {
pub const UV_ENOSYS: uv_errno_t = uv_errno_t(-4054);
}
impl uv_errno_t {
pub const UV_ENOTCONN: uv_errno_t = uv_errno_t(-4053);
}
impl uv_errno_t {
pub const UV_ENOTDIR: uv_errno_t = uv_errno_t(-4052);
}
impl uv_errno_t {
pub const UV_ENOTEMPTY: uv_errno_t = uv_errno_t(-4051);
}
impl uv_errno_t {
pub const UV_ENOTSOCK: uv_errno_t = uv_errno_t(-4050);
}
impl uv_errno_t {
pub const UV_ENOTSUP: uv_errno_t = uv_errno_t(-4049);
}
impl uv_errno_t {
pub const UV_EOVERFLOW: uv_errno_t = uv_errno_t(-4026);
}
impl uv_errno_t {
pub const UV_EPERM: uv_errno_t = uv_errno_t(-4048);
}
impl uv_errno_t {
pub const UV_EPIPE: uv_errno_t = uv_errno_t(-4047);
}
impl uv_errno_t {
pub const UV_EPROTO: uv_errno_t = uv_errno_t(-4046);
}
impl uv_errno_t {
pub const UV_EPROTONOSUPPORT: uv_errno_t = uv_errno_t(-4045);
}
impl uv_errno_t {
pub const UV_EPROTOTYPE: uv_errno_t = uv_errno_t(-4044);
}
impl uv_errno_t {
pub const UV_ERANGE: uv_errno_t = uv_errno_t(-4034);
}
impl uv_errno_t {
pub const UV_EROFS: uv_errno_t = uv_errno_t(-4043);
}
impl uv_errno_t {
pub const UV_ESHUTDOWN: uv_errno_t = uv_errno_t(-4042);
}
impl uv_errno_t {
pub const UV_ESPIPE: uv_errno_t = uv_errno_t(-4041);
}
impl uv_errno_t {
pub const UV_ESRCH: uv_errno_t = uv_errno_t(-4040);
}
impl uv_errno_t {
pub const UV_ETIMEDOUT: uv_errno_t = uv_errno_t(-4039);
}
impl uv_errno_t {
pub const UV_ETXTBSY: uv_errno_t = uv_errno_t(-4038);
}
impl uv_errno_t {
pub const UV_EXDEV: uv_errno_t = uv_errno_t(-4037);
}
impl uv_errno_t {
pub const UV_UNKNOWN: uv_errno_t = uv_errno_t(-4094);
}
impl uv_errno_t {
pub const UV_EOF: uv_errno_t = uv_errno_t(-4095);
}
impl uv_errno_t {
pub const UV_ENXIO: uv_errno_t = uv_errno_t(-4033);
}
impl uv_errno_t {
pub const UV_EMLINK: uv_errno_t = uv_errno_t(-4032);
}
impl uv_errno_t {
pub const UV_EHOSTDOWN: uv_errno_t = uv_errno_t(-4031);
}
impl uv_errno_t {
pub const UV_EREMOTEIO: uv_errno_t = uv_errno_t(-4030);
}
impl uv_errno_t {
pub const UV_ENOTTY: uv_errno_t = uv_errno_t(-4029);
}
impl uv_errno_t {
pub const UV_EFTYPE: uv_errno_t = uv_errno_t(-4028);
}
impl uv_errno_t {
pub const UV_EILSEQ: uv_errno_t = uv_errno_t(-4027);
}
impl uv_errno_t {
pub const UV_ESOCKTNOSUPPORT: uv_errno_t = uv_errno_t(-4025);
}
impl uv_errno_t {
pub const UV_ENODATA: uv_errno_t = uv_errno_t(-4024);
}
impl uv_errno_t {
pub const UV_EUNATCH: uv_errno_t = uv_errno_t(-4023);
}
impl uv_errno_t {
pub const UV_ERRNO_MAX: uv_errno_t = uv_errno_t(-4096);
}
#[repr(transparent)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct uv_errno_t(pub ::std::os::raw::c_int);
impl uv_handle_type {
pub const UV_UNKNOWN_HANDLE: uv_handle_type = uv_handle_type(0);
}
impl uv_handle_type {
pub const UV_ASYNC: uv_handle_type = uv_handle_type(1);
}
impl uv_handle_type {
pub const UV_CHECK: uv_handle_type = uv_handle_type(2);
}
impl uv_handle_type {
pub const UV_FS_EVENT: uv_handle_type = uv_handle_type(3);
}
impl uv_handle_type {
pub const UV_FS_POLL: uv_handle_type = uv_handle_type(4);
}
impl uv_handle_type {
pub const UV_HANDLE: uv_handle_type = uv_handle_type(5);
}
impl uv_handle_type {
pub const UV_IDLE: uv_handle_type = uv_handle_type(6);
}
impl uv_handle_type {
pub const UV_NAMED_PIPE: uv_handle_type = uv_handle_type(7);
}
impl uv_handle_type {
pub const UV_POLL: uv_handle_type = uv_handle_type(8);
}
impl uv_handle_type {
pub const UV_PREPARE: uv_handle_type = uv_handle_type(9);
}
impl uv_handle_type {
pub const UV_PROCESS: uv_handle_type = uv_handle_type(10);
}
impl uv_handle_type {
pub const UV_STREAM: uv_handle_type = uv_handle_type(11);
}
impl uv_handle_type {
pub const UV_TCP: uv_handle_type = uv_handle_type(12);
}
impl uv_handle_type {
pub const UV_TIMER: uv_handle_type = uv_handle_type(13);
}
impl uv_handle_type {
pub const UV_TTY: uv_handle_type = uv_handle_type(14);
}
impl uv_handle_type {
pub const UV_UDP: uv_handle_type = uv_handle_type(15);
}
impl uv_handle_type {
pub const UV_SIGNAL: uv_handle_type = uv_handle_type(16);
}
impl uv_handle_type {
pub const UV_FILE: uv_handle_type = uv_handle_type(17);
}
impl uv_handle_type {
pub const UV_HANDLE_TYPE_MAX: uv_handle_type = uv_handle_type(18);
}
#[repr(transparent)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct uv_handle_type(pub ::std::os::raw::c_int);
impl uv_req_type {
pub const UV_UNKNOWN_REQ: uv_req_type = uv_req_type(0);
}
impl uv_req_type {
pub const UV_REQ: uv_req_type = uv_req_type(1);
}
impl uv_req_type {
pub const UV_CONNECT: uv_req_type = uv_req_type(2);
}
impl uv_req_type {
pub const UV_WRITE: uv_req_type = uv_req_type(3);
}
impl uv_req_type {
pub const UV_SHUTDOWN: uv_req_type = uv_req_type(4);
}
impl uv_req_type {
pub const UV_UDP_SEND: uv_req_type = uv_req_type(5);
}
impl uv_req_type {
pub const UV_FS: uv_req_type = uv_req_type(6);
}
impl uv_req_type {
pub const UV_WORK: uv_req_type = uv_req_type(7);
}
impl uv_req_type {
pub const UV_GETADDRINFO: uv_req_type = uv_req_type(8);
}
impl uv_req_type {
pub const UV_GETNAMEINFO: uv_req_type = uv_req_type(9);
}
impl uv_req_type {
pub const UV_RANDOM: uv_req_type = uv_req_type(10);
}
impl uv_req_type {
pub const UV_ACCEPT: uv_req_type = uv_req_type(11);
}
impl uv_req_type {
pub const UV_FS_EVENT_REQ: uv_req_type = uv_req_type(12);
}
impl uv_req_type {
pub const UV_POLL_REQ: uv_req_type = uv_req_type(13);
}
impl uv_req_type {
pub const UV_PROCESS_EXIT: uv_req_type = uv_req_type(14);
}
impl uv_req_type {
pub const UV_READ: uv_req_type = uv_req_type(15);
}
impl uv_req_type {
pub const UV_UDP_RECV: uv_req_type = uv_req_type(16);
}
impl uv_req_type {
pub const UV_WAKEUP: uv_req_type = uv_req_type(17);
}
impl uv_req_type {
pub const UV_SIGNAL_REQ: uv_req_type = uv_req_type(18);
}
impl uv_req_type {
pub const UV_REQ_TYPE_MAX: uv_req_type = uv_req_type(19);
}
#[repr(transparent)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct uv_req_type(pub ::std::os::raw::c_int);
pub type uv_loop_t = uv_loop_s;
pub type uv_handle_t = uv_handle_s;
pub type uv_dir_t = uv_dir_s;
pub type uv_stream_t = uv_stream_s;
pub type uv_tcp_t = uv_tcp_s;
pub type uv_udp_t = uv_udp_s;
pub type uv_pipe_t = uv_pipe_s;
pub type uv_tty_t = uv_tty_s;
pub type uv_poll_t = uv_poll_s;
pub type uv_timer_t = uv_timer_s;
pub type uv_prepare_t = uv_prepare_s;
pub type uv_check_t = uv_check_s;
pub type uv_idle_t = uv_idle_s;
pub type uv_async_t = uv_async_s;
pub type uv_process_t = uv_process_s;
pub type uv_fs_event_t = uv_fs_event_s;
pub type uv_fs_poll_t = uv_fs_poll_s;
pub type uv_signal_t = uv_signal_s;
pub type uv_req_t = uv_req_s;
pub type uv_getaddrinfo_t = uv_getaddrinfo_s;
pub type uv_getnameinfo_t = uv_getnameinfo_s;
pub type uv_shutdown_t = uv_shutdown_s;
pub type uv_write_t = uv_write_s;
pub type uv_connect_t = uv_connect_s;
pub type uv_udp_send_t = uv_udp_send_s;
pub type uv_fs_t = uv_fs_s;
pub type uv_work_t = uv_work_s;
pub type uv_random_t = uv_random_s;
pub type uv_env_item_t = uv_env_item_s;
pub type uv_cpu_info_t = uv_cpu_info_s;
pub type uv_interface_address_t = uv_interface_address_s;
pub type uv_dirent_t = uv_dirent_s;
pub type uv_passwd_t = uv_passwd_s;
pub type uv_group_t = uv_group_s;
pub type uv_utsname_t = uv_utsname_s;
pub type uv_statfs_t = uv_statfs_s;
pub type uv_metrics_t = uv_metrics_s;
impl uv_loop_option {
pub const UV_LOOP_BLOCK_SIGNAL: uv_loop_option = uv_loop_option(0);
}
impl uv_loop_option {
pub const UV_METRICS_IDLE_TIME: uv_loop_option = uv_loop_option(1);
}
#[repr(transparent)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct uv_loop_option(pub ::std::os::raw::c_int);
impl uv_run_mode {
pub const UV_RUN_DEFAULT: uv_run_mode = uv_run_mode(0);
}
impl uv_run_mode {
pub const UV_RUN_ONCE: uv_run_mode = uv_run_mode(1);
}
impl uv_run_mode {
pub const UV_RUN_NOWAIT: uv_run_mode = uv_run_mode(2);
}
#[repr(transparent)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct uv_run_mode(pub ::std::os::raw::c_int);
pub type uv_malloc_func =
::std::option::Option<unsafe extern "C" fn(size: usize) -> *mut ::std::os::raw::c_void>;
pub type uv_realloc_func = ::std::option::Option<
unsafe extern "C" fn(
ptr: *mut ::std::os::raw::c_void,
size: usize,
) -> *mut ::std::os::raw::c_void,
>;
pub type uv_calloc_func = ::std::option::Option<
unsafe extern "C" fn(count: usize, size: usize) -> *mut ::std::os::raw::c_void,
>;
pub type uv_free_func =
::std::option::Option<unsafe extern "C" fn(ptr: *mut ::std::os::raw::c_void)>;
pub type uv_alloc_cb = ::std::option::Option<
unsafe extern "C" fn(handle: *mut uv_handle_t, suggested_size: usize, buf: *mut uv_buf_t),
>;
pub type uv_read_cb = ::std::option::Option<
unsafe extern "C" fn(stream: *mut uv_stream_t, nread: isize, buf: *const uv_buf_t),
>;
pub type uv_write_cb =
::std::option::Option<unsafe extern "C" fn(req: *mut uv_write_t, status: ::std::os::raw::c_int)>;
pub type uv_connect_cb = ::std::option::Option<
unsafe extern "C" fn(req: *mut uv_connect_t, status: ::std::os::raw::c_int),
>;
pub type uv_shutdown_cb = ::std::option::Option<
unsafe extern "C" fn(req: *mut uv_shutdown_t, status: ::std::os::raw::c_int),
>;
pub type uv_connection_cb = ::std::option::Option<
unsafe extern "C" fn(server: *mut uv_stream_t, status: ::std::os::raw::c_int),
>;
pub type uv_close_cb = ::std::option::Option<unsafe extern "C" fn(handle: *mut uv_handle_t)>;
pub type uv_poll_cb = ::std::option::Option<
unsafe extern "C" fn(
handle: *mut uv_poll_t,
status: ::std::os::raw::c_int,
events: ::std::os::raw::c_int,
),
>;
pub type uv_timer_cb = ::std::option::Option<unsafe extern "C" fn(handle: *mut uv_timer_t)>;
pub type uv_async_cb = ::std::option::Option<unsafe extern "C" fn(handle: *mut uv_async_t)>;
pub type uv_prepare_cb = ::std::option::Option<unsafe extern "C" fn(handle: *mut uv_prepare_t)>;
pub type uv_check_cb = ::std::option::Option<unsafe extern "C" fn(handle: *mut uv_check_t)>;
pub type uv_idle_cb = ::std::option::Option<unsafe extern "C" fn(handle: *mut uv_idle_t)>;
pub type uv_exit_cb = ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut uv_process_t,
exit_status: i64,
term_signal: ::std::os::raw::c_int,
),
>;
pub type uv_walk_cb = ::std::option::Option<
unsafe extern "C" fn(handle: *mut uv_handle_t, arg: *mut ::std::os::raw::c_void),
>;
pub type uv_fs_cb = ::std::option::Option<unsafe extern "C" fn(req: *mut uv_fs_t)>;
pub type uv_work_cb = ::std::option::Option<unsafe extern "C" fn(req: *mut uv_work_t)>;
pub type uv_after_work_cb =
::std::option::Option<unsafe extern "C" fn(req: *mut uv_work_t, status: ::std::os::raw::c_int)>;
pub type uv_getaddrinfo_cb = ::std::option::Option<
unsafe extern "C" fn(
req: *mut uv_getaddrinfo_t,
status: ::std::os::raw::c_int,
res: *mut addrinfo,
),
>;
pub type uv_getnameinfo_cb = ::std::option::Option<
unsafe extern "C" fn(
req: *mut uv_getnameinfo_t,
status: ::std::os::raw::c_int,
hostname: *const ::std::os::raw::c_char,
service: *const ::std::os::raw::c_char,
),
>;
pub type uv_random_cb = ::std::option::Option<
unsafe extern "C" fn(
req: *mut uv_random_t,
status: ::std::os::raw::c_int,
buf: *mut ::std::os::raw::c_void,
buflen: usize,
),
>;
impl uv_clock_id {
pub const UV_CLOCK_MONOTONIC: uv_clock_id = uv_clock_id(0);
}
impl uv_clock_id {
pub const UV_CLOCK_REALTIME: uv_clock_id = uv_clock_id(1);
}
#[repr(transparent)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct uv_clock_id(pub ::std::os::raw::c_int);
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_timespec_t {
pub tv_sec: ::std::os::raw::c_long,
pub tv_nsec: ::std::os::raw::c_long,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_timespec_t"][::std::mem::size_of::<uv_timespec_t>() - 8usize];
["Alignment of uv_timespec_t"][::std::mem::align_of::<uv_timespec_t>() - 4usize];
["Offset of field: uv_timespec_t::tv_sec"]
[::std::mem::offset_of!(uv_timespec_t, tv_sec) - 0usize];
["Offset of field: uv_timespec_t::tv_nsec"]
[::std::mem::offset_of!(uv_timespec_t, tv_nsec) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_timespec64_t {
pub tv_sec: i64,
pub tv_nsec: i32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_timespec64_t"][::std::mem::size_of::<uv_timespec64_t>() - 16usize];
["Alignment of uv_timespec64_t"][::std::mem::align_of::<uv_timespec64_t>() - 8usize];
["Offset of field: uv_timespec64_t::tv_sec"]
[::std::mem::offset_of!(uv_timespec64_t, tv_sec) - 0usize];
["Offset of field: uv_timespec64_t::tv_nsec"]
[::std::mem::offset_of!(uv_timespec64_t, tv_nsec) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_timeval_t {
pub tv_sec: ::std::os::raw::c_long,
pub tv_usec: ::std::os::raw::c_long,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_timeval_t"][::std::mem::size_of::<uv_timeval_t>() - 8usize];
["Alignment of uv_timeval_t"][::std::mem::align_of::<uv_timeval_t>() - 4usize];
["Offset of field: uv_timeval_t::tv_sec"][::std::mem::offset_of!(uv_timeval_t, tv_sec) - 0usize];
["Offset of field: uv_timeval_t::tv_usec"]
[::std::mem::offset_of!(uv_timeval_t, tv_usec) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_timeval64_t {
pub tv_sec: i64,
pub tv_usec: i32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_timeval64_t"][::std::mem::size_of::<uv_timeval64_t>() - 16usize];
["Alignment of uv_timeval64_t"][::std::mem::align_of::<uv_timeval64_t>() - 8usize];
["Offset of field: uv_timeval64_t::tv_sec"]
[::std::mem::offset_of!(uv_timeval64_t, tv_sec) - 0usize];
["Offset of field: uv_timeval64_t::tv_usec"]
[::std::mem::offset_of!(uv_timeval64_t, tv_usec) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_stat_t {
pub st_dev: u64,
pub st_mode: u64,
pub st_nlink: u64,
pub st_uid: u64,
pub st_gid: u64,
pub st_rdev: u64,
pub st_ino: u64,
pub st_size: u64,
pub st_blksize: u64,
pub st_blocks: u64,
pub st_flags: u64,
pub st_gen: u64,
pub st_atim: uv_timespec_t,
pub st_mtim: uv_timespec_t,
pub st_ctim: uv_timespec_t,
pub st_birthtim: uv_timespec_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_stat_t"][::std::mem::size_of::<uv_stat_t>() - 128usize];
["Alignment of uv_stat_t"][::std::mem::align_of::<uv_stat_t>() - 8usize];
["Offset of field: uv_stat_t::st_dev"][::std::mem::offset_of!(uv_stat_t, st_dev) - 0usize];
["Offset of field: uv_stat_t::st_mode"][::std::mem::offset_of!(uv_stat_t, st_mode) - 8usize];
["Offset of field: uv_stat_t::st_nlink"][::std::mem::offset_of!(uv_stat_t, st_nlink) - 16usize];
["Offset of field: uv_stat_t::st_uid"][::std::mem::offset_of!(uv_stat_t, st_uid) - 24usize];
["Offset of field: uv_stat_t::st_gid"][::std::mem::offset_of!(uv_stat_t, st_gid) - 32usize];
["Offset of field: uv_stat_t::st_rdev"][::std::mem::offset_of!(uv_stat_t, st_rdev) - 40usize];
["Offset of field: uv_stat_t::st_ino"][::std::mem::offset_of!(uv_stat_t, st_ino) - 48usize];
["Offset of field: uv_stat_t::st_size"][::std::mem::offset_of!(uv_stat_t, st_size) - 56usize];
["Offset of field: uv_stat_t::st_blksize"]
[::std::mem::offset_of!(uv_stat_t, st_blksize) - 64usize];
["Offset of field: uv_stat_t::st_blocks"][::std::mem::offset_of!(uv_stat_t, st_blocks) - 72usize];
["Offset of field: uv_stat_t::st_flags"][::std::mem::offset_of!(uv_stat_t, st_flags) - 80usize];
["Offset of field: uv_stat_t::st_gen"][::std::mem::offset_of!(uv_stat_t, st_gen) - 88usize];
["Offset of field: uv_stat_t::st_atim"][::std::mem::offset_of!(uv_stat_t, st_atim) - 96usize];
["Offset of field: uv_stat_t::st_mtim"][::std::mem::offset_of!(uv_stat_t, st_mtim) - 104usize];
["Offset of field: uv_stat_t::st_ctim"][::std::mem::offset_of!(uv_stat_t, st_ctim) - 112usize];
["Offset of field: uv_stat_t::st_birthtim"]
[::std::mem::offset_of!(uv_stat_t, st_birthtim) - 120usize];
};
pub type uv_fs_event_cb = ::std::option::Option<
unsafe extern "C" fn(
handle: *mut uv_fs_event_t,
filename: *const ::std::os::raw::c_char,
events: ::std::os::raw::c_int,
status: ::std::os::raw::c_int,
),
>;
pub type uv_fs_poll_cb = ::std::option::Option<
unsafe extern "C" fn(
handle: *mut uv_fs_poll_t,
status: ::std::os::raw::c_int,
prev: *const uv_stat_t,
curr: *const uv_stat_t,
),
>;
pub type uv_signal_cb = ::std::option::Option<
unsafe extern "C" fn(handle: *mut uv_signal_t, signum: ::std::os::raw::c_int),
>;
impl uv_membership {
pub const UV_LEAVE_GROUP: uv_membership = uv_membership(0);
}
impl uv_membership {
pub const UV_JOIN_GROUP: uv_membership = uv_membership(1);
}
#[repr(transparent)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct uv_membership(pub ::std::os::raw::c_int);
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_req_s {
pub data: *mut ::std::os::raw::c_void,
pub type_: uv_req_type,
pub reserved: [*mut ::std::os::raw::c_void; 6usize],
pub u: uv_req_s__bindgen_ty_1,
pub next_req: *mut uv_req_s,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_req_s__bindgen_ty_1 {
pub io: uv_req_s__bindgen_ty_1__bindgen_ty_1,
pub connect: uv_req_s__bindgen_ty_1__bindgen_ty_2,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_req_s__bindgen_ty_1__bindgen_ty_1 {
pub overlapped: OVERLAPPED,
pub queued_bytes: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_req_s__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::size_of::<uv_req_s__bindgen_ty_1__bindgen_ty_1>() - 40usize];
["Alignment of uv_req_s__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::align_of::<uv_req_s__bindgen_ty_1__bindgen_ty_1>() - 8usize];
["Offset of field: uv_req_s__bindgen_ty_1__bindgen_ty_1::overlapped"]
[::std::mem::offset_of!(uv_req_s__bindgen_ty_1__bindgen_ty_1, overlapped) - 0usize];
["Offset of field: uv_req_s__bindgen_ty_1__bindgen_ty_1::queued_bytes"]
[::std::mem::offset_of!(uv_req_s__bindgen_ty_1__bindgen_ty_1, queued_bytes) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_req_s__bindgen_ty_1__bindgen_ty_2 {
pub result: ULONG_PTR,
pub pipeHandle: HANDLE,
pub duplex_flags: DWORD,
pub name: *mut WCHAR,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_req_s__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::size_of::<uv_req_s__bindgen_ty_1__bindgen_ty_2>() - 32usize];
["Alignment of uv_req_s__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::align_of::<uv_req_s__bindgen_ty_1__bindgen_ty_2>() - 8usize];
["Offset of field: uv_req_s__bindgen_ty_1__bindgen_ty_2::result"]
[::std::mem::offset_of!(uv_req_s__bindgen_ty_1__bindgen_ty_2, result) - 0usize];
["Offset of field: uv_req_s__bindgen_ty_1__bindgen_ty_2::pipeHandle"]
[::std::mem::offset_of!(uv_req_s__bindgen_ty_1__bindgen_ty_2, pipeHandle) - 8usize];
["Offset of field: uv_req_s__bindgen_ty_1__bindgen_ty_2::duplex_flags"]
[::std::mem::offset_of!(uv_req_s__bindgen_ty_1__bindgen_ty_2, duplex_flags) - 16usize];
["Offset of field: uv_req_s__bindgen_ty_1__bindgen_ty_2::name"]
[::std::mem::offset_of!(uv_req_s__bindgen_ty_1__bindgen_ty_2, name) - 24usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_req_s__bindgen_ty_1"][::std::mem::size_of::<uv_req_s__bindgen_ty_1>() - 40usize];
["Alignment of uv_req_s__bindgen_ty_1"]
[::std::mem::align_of::<uv_req_s__bindgen_ty_1>() - 8usize];
["Offset of field: uv_req_s__bindgen_ty_1::io"]
[::std::mem::offset_of!(uv_req_s__bindgen_ty_1, io) - 0usize];
["Offset of field: uv_req_s__bindgen_ty_1::connect"]
[::std::mem::offset_of!(uv_req_s__bindgen_ty_1, connect) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_req_s"][::std::mem::size_of::<uv_req_s>() - 112usize];
["Alignment of uv_req_s"][::std::mem::align_of::<uv_req_s>() - 8usize];
["Offset of field: uv_req_s::data"][::std::mem::offset_of!(uv_req_s, data) - 0usize];
["Offset of field: uv_req_s::type_"][::std::mem::offset_of!(uv_req_s, type_) - 8usize];
["Offset of field: uv_req_s::reserved"][::std::mem::offset_of!(uv_req_s, reserved) - 16usize];
["Offset of field: uv_req_s::u"][::std::mem::offset_of!(uv_req_s, u) - 64usize];
["Offset of field: uv_req_s::next_req"][::std::mem::offset_of!(uv_req_s, next_req) - 104usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_pipe_accept_s {
pub data: *mut ::std::os::raw::c_void,
pub type_: uv_req_type,
pub reserved: [*mut ::std::os::raw::c_void; 6usize],
pub u: uv_pipe_accept_s__bindgen_ty_1,
pub next_req: *mut uv_req_s,
pub pipeHandle: HANDLE,
pub next_pending: *mut uv_pipe_accept_s,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_pipe_accept_s__bindgen_ty_1 {
pub io: uv_pipe_accept_s__bindgen_ty_1__bindgen_ty_1,
pub connect: uv_pipe_accept_s__bindgen_ty_1__bindgen_ty_2,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_pipe_accept_s__bindgen_ty_1__bindgen_ty_1 {
pub overlapped: OVERLAPPED,
pub queued_bytes: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_pipe_accept_s__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::size_of::<uv_pipe_accept_s__bindgen_ty_1__bindgen_ty_1>() - 40usize];
["Alignment of uv_pipe_accept_s__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::align_of::<uv_pipe_accept_s__bindgen_ty_1__bindgen_ty_1>() - 8usize];
["Offset of field: uv_pipe_accept_s__bindgen_ty_1__bindgen_ty_1::overlapped"]
[::std::mem::offset_of!(uv_pipe_accept_s__bindgen_ty_1__bindgen_ty_1, overlapped) - 0usize];
["Offset of field: uv_pipe_accept_s__bindgen_ty_1__bindgen_ty_1::queued_bytes"]
[::std::mem::offset_of!(uv_pipe_accept_s__bindgen_ty_1__bindgen_ty_1, queued_bytes) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_pipe_accept_s__bindgen_ty_1__bindgen_ty_2 {
pub result: ULONG_PTR,
pub pipeHandle: HANDLE,
pub duplex_flags: DWORD,
pub name: *mut WCHAR,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_pipe_accept_s__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::size_of::<uv_pipe_accept_s__bindgen_ty_1__bindgen_ty_2>() - 32usize];
["Alignment of uv_pipe_accept_s__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::align_of::<uv_pipe_accept_s__bindgen_ty_1__bindgen_ty_2>() - 8usize];
["Offset of field: uv_pipe_accept_s__bindgen_ty_1__bindgen_ty_2::result"]
[::std::mem::offset_of!(uv_pipe_accept_s__bindgen_ty_1__bindgen_ty_2, result) - 0usize];
["Offset of field: uv_pipe_accept_s__bindgen_ty_1__bindgen_ty_2::pipeHandle"]
[::std::mem::offset_of!(uv_pipe_accept_s__bindgen_ty_1__bindgen_ty_2, pipeHandle) - 8usize];
["Offset of field: uv_pipe_accept_s__bindgen_ty_1__bindgen_ty_2::duplex_flags"]
[::std::mem::offset_of!(uv_pipe_accept_s__bindgen_ty_1__bindgen_ty_2, duplex_flags) - 16usize];
["Offset of field: uv_pipe_accept_s__bindgen_ty_1__bindgen_ty_2::name"]
[::std::mem::offset_of!(uv_pipe_accept_s__bindgen_ty_1__bindgen_ty_2, name) - 24usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_pipe_accept_s__bindgen_ty_1"]
[::std::mem::size_of::<uv_pipe_accept_s__bindgen_ty_1>() - 40usize];
["Alignment of uv_pipe_accept_s__bindgen_ty_1"]
[::std::mem::align_of::<uv_pipe_accept_s__bindgen_ty_1>() - 8usize];
["Offset of field: uv_pipe_accept_s__bindgen_ty_1::io"]
[::std::mem::offset_of!(uv_pipe_accept_s__bindgen_ty_1, io) - 0usize];
["Offset of field: uv_pipe_accept_s__bindgen_ty_1::connect"]
[::std::mem::offset_of!(uv_pipe_accept_s__bindgen_ty_1, connect) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_pipe_accept_s"][::std::mem::size_of::<uv_pipe_accept_s>() - 128usize];
["Alignment of uv_pipe_accept_s"][::std::mem::align_of::<uv_pipe_accept_s>() - 8usize];
["Offset of field: uv_pipe_accept_s::data"]
[::std::mem::offset_of!(uv_pipe_accept_s, data) - 0usize];
["Offset of field: uv_pipe_accept_s::type_"]
[::std::mem::offset_of!(uv_pipe_accept_s, type_) - 8usize];
["Offset of field: uv_pipe_accept_s::reserved"]
[::std::mem::offset_of!(uv_pipe_accept_s, reserved) - 16usize];
["Offset of field: uv_pipe_accept_s::u"][::std::mem::offset_of!(uv_pipe_accept_s, u) - 64usize];
["Offset of field: uv_pipe_accept_s::next_req"]
[::std::mem::offset_of!(uv_pipe_accept_s, next_req) - 104usize];
["Offset of field: uv_pipe_accept_s::pipeHandle"]
[::std::mem::offset_of!(uv_pipe_accept_s, pipeHandle) - 112usize];
["Offset of field: uv_pipe_accept_s::next_pending"]
[::std::mem::offset_of!(uv_pipe_accept_s, next_pending) - 120usize];
};
pub type uv_pipe_accept_t = uv_pipe_accept_s;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_tcp_accept_s {
pub data: *mut ::std::os::raw::c_void,
pub type_: uv_req_type,
pub reserved: [*mut ::std::os::raw::c_void; 6usize],
pub u: uv_tcp_accept_s__bindgen_ty_1,
pub next_req: *mut uv_req_s,
pub accept_socket: SOCKET,
pub accept_buffer: [::std::os::raw::c_char; 288usize],
pub event_handle: HANDLE,
pub wait_handle: HANDLE,
pub next_pending: *mut uv_tcp_accept_s,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_tcp_accept_s__bindgen_ty_1 {
pub io: uv_tcp_accept_s__bindgen_ty_1__bindgen_ty_1,
pub connect: uv_tcp_accept_s__bindgen_ty_1__bindgen_ty_2,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_tcp_accept_s__bindgen_ty_1__bindgen_ty_1 {
pub overlapped: OVERLAPPED,
pub queued_bytes: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_tcp_accept_s__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::size_of::<uv_tcp_accept_s__bindgen_ty_1__bindgen_ty_1>() - 40usize];
["Alignment of uv_tcp_accept_s__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::align_of::<uv_tcp_accept_s__bindgen_ty_1__bindgen_ty_1>() - 8usize];
["Offset of field: uv_tcp_accept_s__bindgen_ty_1__bindgen_ty_1::overlapped"]
[::std::mem::offset_of!(uv_tcp_accept_s__bindgen_ty_1__bindgen_ty_1, overlapped) - 0usize];
["Offset of field: uv_tcp_accept_s__bindgen_ty_1__bindgen_ty_1::queued_bytes"]
[::std::mem::offset_of!(uv_tcp_accept_s__bindgen_ty_1__bindgen_ty_1, queued_bytes) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_tcp_accept_s__bindgen_ty_1__bindgen_ty_2 {
pub result: ULONG_PTR,
pub pipeHandle: HANDLE,
pub duplex_flags: DWORD,
pub name: *mut WCHAR,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_tcp_accept_s__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::size_of::<uv_tcp_accept_s__bindgen_ty_1__bindgen_ty_2>() - 32usize];
["Alignment of uv_tcp_accept_s__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::align_of::<uv_tcp_accept_s__bindgen_ty_1__bindgen_ty_2>() - 8usize];
["Offset of field: uv_tcp_accept_s__bindgen_ty_1__bindgen_ty_2::result"]
[::std::mem::offset_of!(uv_tcp_accept_s__bindgen_ty_1__bindgen_ty_2, result) - 0usize];
["Offset of field: uv_tcp_accept_s__bindgen_ty_1__bindgen_ty_2::pipeHandle"]
[::std::mem::offset_of!(uv_tcp_accept_s__bindgen_ty_1__bindgen_ty_2, pipeHandle) - 8usize];
["Offset of field: uv_tcp_accept_s__bindgen_ty_1__bindgen_ty_2::duplex_flags"]
[::std::mem::offset_of!(uv_tcp_accept_s__bindgen_ty_1__bindgen_ty_2, duplex_flags) - 16usize];
["Offset of field: uv_tcp_accept_s__bindgen_ty_1__bindgen_ty_2::name"]
[::std::mem::offset_of!(uv_tcp_accept_s__bindgen_ty_1__bindgen_ty_2, name) - 24usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_tcp_accept_s__bindgen_ty_1"]
[::std::mem::size_of::<uv_tcp_accept_s__bindgen_ty_1>() - 40usize];
["Alignment of uv_tcp_accept_s__bindgen_ty_1"]
[::std::mem::align_of::<uv_tcp_accept_s__bindgen_ty_1>() - 8usize];
["Offset of field: uv_tcp_accept_s__bindgen_ty_1::io"]
[::std::mem::offset_of!(uv_tcp_accept_s__bindgen_ty_1, io) - 0usize];
["Offset of field: uv_tcp_accept_s__bindgen_ty_1::connect"]
[::std::mem::offset_of!(uv_tcp_accept_s__bindgen_ty_1, connect) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_tcp_accept_s"][::std::mem::size_of::<uv_tcp_accept_s>() - 432usize];
["Alignment of uv_tcp_accept_s"][::std::mem::align_of::<uv_tcp_accept_s>() - 8usize];
["Offset of field: uv_tcp_accept_s::data"]
[::std::mem::offset_of!(uv_tcp_accept_s, data) - 0usize];
["Offset of field: uv_tcp_accept_s::type_"]
[::std::mem::offset_of!(uv_tcp_accept_s, type_) - 8usize];
["Offset of field: uv_tcp_accept_s::reserved"]
[::std::mem::offset_of!(uv_tcp_accept_s, reserved) - 16usize];
["Offset of field: uv_tcp_accept_s::u"][::std::mem::offset_of!(uv_tcp_accept_s, u) - 64usize];
["Offset of field: uv_tcp_accept_s::next_req"]
[::std::mem::offset_of!(uv_tcp_accept_s, next_req) - 104usize];
["Offset of field: uv_tcp_accept_s::accept_socket"]
[::std::mem::offset_of!(uv_tcp_accept_s, accept_socket) - 112usize];
["Offset of field: uv_tcp_accept_s::accept_buffer"]
[::std::mem::offset_of!(uv_tcp_accept_s, accept_buffer) - 120usize];
["Offset of field: uv_tcp_accept_s::event_handle"]
[::std::mem::offset_of!(uv_tcp_accept_s, event_handle) - 408usize];
["Offset of field: uv_tcp_accept_s::wait_handle"]
[::std::mem::offset_of!(uv_tcp_accept_s, wait_handle) - 416usize];
["Offset of field: uv_tcp_accept_s::next_pending"]
[::std::mem::offset_of!(uv_tcp_accept_s, next_pending) - 424usize];
};
pub type uv_tcp_accept_t = uv_tcp_accept_s;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_read_s {
pub data: *mut ::std::os::raw::c_void,
pub type_: uv_req_type,
pub reserved: [*mut ::std::os::raw::c_void; 6usize],
pub u: uv_read_s__bindgen_ty_1,
pub next_req: *mut uv_req_s,
pub event_handle: HANDLE,
pub wait_handle: HANDLE,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_read_s__bindgen_ty_1 {
pub io: uv_read_s__bindgen_ty_1__bindgen_ty_1,
pub connect: uv_read_s__bindgen_ty_1__bindgen_ty_2,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_read_s__bindgen_ty_1__bindgen_ty_1 {
pub overlapped: OVERLAPPED,
pub queued_bytes: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_read_s__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::size_of::<uv_read_s__bindgen_ty_1__bindgen_ty_1>() - 40usize];
["Alignment of uv_read_s__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::align_of::<uv_read_s__bindgen_ty_1__bindgen_ty_1>() - 8usize];
["Offset of field: uv_read_s__bindgen_ty_1__bindgen_ty_1::overlapped"]
[::std::mem::offset_of!(uv_read_s__bindgen_ty_1__bindgen_ty_1, overlapped) - 0usize];
["Offset of field: uv_read_s__bindgen_ty_1__bindgen_ty_1::queued_bytes"]
[::std::mem::offset_of!(uv_read_s__bindgen_ty_1__bindgen_ty_1, queued_bytes) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_read_s__bindgen_ty_1__bindgen_ty_2 {
pub result: ULONG_PTR,
pub pipeHandle: HANDLE,
pub duplex_flags: DWORD,
pub name: *mut WCHAR,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_read_s__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::size_of::<uv_read_s__bindgen_ty_1__bindgen_ty_2>() - 32usize];
["Alignment of uv_read_s__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::align_of::<uv_read_s__bindgen_ty_1__bindgen_ty_2>() - 8usize];
["Offset of field: uv_read_s__bindgen_ty_1__bindgen_ty_2::result"]
[::std::mem::offset_of!(uv_read_s__bindgen_ty_1__bindgen_ty_2, result) - 0usize];
["Offset of field: uv_read_s__bindgen_ty_1__bindgen_ty_2::pipeHandle"]
[::std::mem::offset_of!(uv_read_s__bindgen_ty_1__bindgen_ty_2, pipeHandle) - 8usize];
["Offset of field: uv_read_s__bindgen_ty_1__bindgen_ty_2::duplex_flags"]
[::std::mem::offset_of!(uv_read_s__bindgen_ty_1__bindgen_ty_2, duplex_flags) - 16usize];
["Offset of field: uv_read_s__bindgen_ty_1__bindgen_ty_2::name"]
[::std::mem::offset_of!(uv_read_s__bindgen_ty_1__bindgen_ty_2, name) - 24usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_read_s__bindgen_ty_1"][::std::mem::size_of::<uv_read_s__bindgen_ty_1>() - 40usize];
["Alignment of uv_read_s__bindgen_ty_1"]
[::std::mem::align_of::<uv_read_s__bindgen_ty_1>() - 8usize];
["Offset of field: uv_read_s__bindgen_ty_1::io"]
[::std::mem::offset_of!(uv_read_s__bindgen_ty_1, io) - 0usize];
["Offset of field: uv_read_s__bindgen_ty_1::connect"]
[::std::mem::offset_of!(uv_read_s__bindgen_ty_1, connect) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_read_s"][::std::mem::size_of::<uv_read_s>() - 128usize];
["Alignment of uv_read_s"][::std::mem::align_of::<uv_read_s>() - 8usize];
["Offset of field: uv_read_s::data"][::std::mem::offset_of!(uv_read_s, data) - 0usize];
["Offset of field: uv_read_s::type_"][::std::mem::offset_of!(uv_read_s, type_) - 8usize];
["Offset of field: uv_read_s::reserved"][::std::mem::offset_of!(uv_read_s, reserved) - 16usize];
["Offset of field: uv_read_s::u"][::std::mem::offset_of!(uv_read_s, u) - 64usize];
["Offset of field: uv_read_s::next_req"][::std::mem::offset_of!(uv_read_s, next_req) - 104usize];
["Offset of field: uv_read_s::event_handle"]
[::std::mem::offset_of!(uv_read_s, event_handle) - 112usize];
["Offset of field: uv_read_s::wait_handle"]
[::std::mem::offset_of!(uv_read_s, wait_handle) - 120usize];
};
pub type uv_read_t = uv_read_s;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_shutdown_s {
pub data: *mut ::std::os::raw::c_void,
pub type_: uv_req_type,
pub reserved: [*mut ::std::os::raw::c_void; 6usize],
pub u: uv_shutdown_s__bindgen_ty_1,
pub next_req: *mut uv_req_s,
pub handle: *mut uv_stream_t,
pub cb: uv_shutdown_cb,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_shutdown_s__bindgen_ty_1 {
pub io: uv_shutdown_s__bindgen_ty_1__bindgen_ty_1,
pub connect: uv_shutdown_s__bindgen_ty_1__bindgen_ty_2,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_shutdown_s__bindgen_ty_1__bindgen_ty_1 {
pub overlapped: OVERLAPPED,
pub queued_bytes: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_shutdown_s__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::size_of::<uv_shutdown_s__bindgen_ty_1__bindgen_ty_1>() - 40usize];
["Alignment of uv_shutdown_s__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::align_of::<uv_shutdown_s__bindgen_ty_1__bindgen_ty_1>() - 8usize];
["Offset of field: uv_shutdown_s__bindgen_ty_1__bindgen_ty_1::overlapped"]
[::std::mem::offset_of!(uv_shutdown_s__bindgen_ty_1__bindgen_ty_1, overlapped) - 0usize];
["Offset of field: uv_shutdown_s__bindgen_ty_1__bindgen_ty_1::queued_bytes"]
[::std::mem::offset_of!(uv_shutdown_s__bindgen_ty_1__bindgen_ty_1, queued_bytes) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_shutdown_s__bindgen_ty_1__bindgen_ty_2 {
pub result: ULONG_PTR,
pub pipeHandle: HANDLE,
pub duplex_flags: DWORD,
pub name: *mut WCHAR,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_shutdown_s__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::size_of::<uv_shutdown_s__bindgen_ty_1__bindgen_ty_2>() - 32usize];
["Alignment of uv_shutdown_s__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::align_of::<uv_shutdown_s__bindgen_ty_1__bindgen_ty_2>() - 8usize];
["Offset of field: uv_shutdown_s__bindgen_ty_1__bindgen_ty_2::result"]
[::std::mem::offset_of!(uv_shutdown_s__bindgen_ty_1__bindgen_ty_2, result) - 0usize];
["Offset of field: uv_shutdown_s__bindgen_ty_1__bindgen_ty_2::pipeHandle"]
[::std::mem::offset_of!(uv_shutdown_s__bindgen_ty_1__bindgen_ty_2, pipeHandle) - 8usize];
["Offset of field: uv_shutdown_s__bindgen_ty_1__bindgen_ty_2::duplex_flags"]
[::std::mem::offset_of!(uv_shutdown_s__bindgen_ty_1__bindgen_ty_2, duplex_flags) - 16usize];
["Offset of field: uv_shutdown_s__bindgen_ty_1__bindgen_ty_2::name"]
[::std::mem::offset_of!(uv_shutdown_s__bindgen_ty_1__bindgen_ty_2, name) - 24usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_shutdown_s__bindgen_ty_1"]
[::std::mem::size_of::<uv_shutdown_s__bindgen_ty_1>() - 40usize];
["Alignment of uv_shutdown_s__bindgen_ty_1"]
[::std::mem::align_of::<uv_shutdown_s__bindgen_ty_1>() - 8usize];
["Offset of field: uv_shutdown_s__bindgen_ty_1::io"]
[::std::mem::offset_of!(uv_shutdown_s__bindgen_ty_1, io) - 0usize];
["Offset of field: uv_shutdown_s__bindgen_ty_1::connect"]
[::std::mem::offset_of!(uv_shutdown_s__bindgen_ty_1, connect) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_shutdown_s"][::std::mem::size_of::<uv_shutdown_s>() - 128usize];
["Alignment of uv_shutdown_s"][::std::mem::align_of::<uv_shutdown_s>() - 8usize];
["Offset of field: uv_shutdown_s::data"][::std::mem::offset_of!(uv_shutdown_s, data) - 0usize];
["Offset of field: uv_shutdown_s::type_"][::std::mem::offset_of!(uv_shutdown_s, type_) - 8usize];
["Offset of field: uv_shutdown_s::reserved"]
[::std::mem::offset_of!(uv_shutdown_s, reserved) - 16usize];
["Offset of field: uv_shutdown_s::u"][::std::mem::offset_of!(uv_shutdown_s, u) - 64usize];
["Offset of field: uv_shutdown_s::next_req"]
[::std::mem::offset_of!(uv_shutdown_s, next_req) - 104usize];
["Offset of field: uv_shutdown_s::handle"]
[::std::mem::offset_of!(uv_shutdown_s, handle) - 112usize];
["Offset of field: uv_shutdown_s::cb"][::std::mem::offset_of!(uv_shutdown_s, cb) - 120usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_handle_s {
pub data: *mut ::std::os::raw::c_void,
pub loop_: *mut uv_loop_t,
pub type_: uv_handle_type,
pub close_cb: uv_close_cb,
pub handle_queue: uv__queue,
pub u: uv_handle_s__bindgen_ty_1,
pub endgame_next: *mut uv_handle_t,
pub flags: ::std::os::raw::c_uint,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_handle_s__bindgen_ty_1 {
pub fd: ::std::os::raw::c_int,
pub reserved: [*mut ::std::os::raw::c_void; 4usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_handle_s__bindgen_ty_1"]
[::std::mem::size_of::<uv_handle_s__bindgen_ty_1>() - 32usize];
["Alignment of uv_handle_s__bindgen_ty_1"]
[::std::mem::align_of::<uv_handle_s__bindgen_ty_1>() - 8usize];
["Offset of field: uv_handle_s__bindgen_ty_1::fd"]
[::std::mem::offset_of!(uv_handle_s__bindgen_ty_1, fd) - 0usize];
["Offset of field: uv_handle_s__bindgen_ty_1::reserved"]
[::std::mem::offset_of!(uv_handle_s__bindgen_ty_1, reserved) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_handle_s"][::std::mem::size_of::<uv_handle_s>() - 96usize];
["Alignment of uv_handle_s"][::std::mem::align_of::<uv_handle_s>() - 8usize];
["Offset of field: uv_handle_s::data"][::std::mem::offset_of!(uv_handle_s, data) - 0usize];
["Offset of field: uv_handle_s::loop_"][::std::mem::offset_of!(uv_handle_s, loop_) - 8usize];
["Offset of field: uv_handle_s::type_"][::std::mem::offset_of!(uv_handle_s, type_) - 16usize];
["Offset of field: uv_handle_s::close_cb"]
[::std::mem::offset_of!(uv_handle_s, close_cb) - 24usize];
["Offset of field: uv_handle_s::handle_queue"]
[::std::mem::offset_of!(uv_handle_s, handle_queue) - 32usize];
["Offset of field: uv_handle_s::u"][::std::mem::offset_of!(uv_handle_s, u) - 48usize];
["Offset of field: uv_handle_s::endgame_next"]
[::std::mem::offset_of!(uv_handle_s, endgame_next) - 80usize];
["Offset of field: uv_handle_s::flags"][::std::mem::offset_of!(uv_handle_s, flags) - 88usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_stream_s {
pub data: *mut ::std::os::raw::c_void,
pub loop_: *mut uv_loop_t,
pub type_: uv_handle_type,
pub close_cb: uv_close_cb,
pub handle_queue: uv__queue,
pub u: uv_stream_s__bindgen_ty_1,
pub endgame_next: *mut uv_handle_t,
pub flags: ::std::os::raw::c_uint,
pub write_queue_size: usize,
pub alloc_cb: uv_alloc_cb,
pub read_cb: uv_read_cb,
pub reqs_pending: ::std::os::raw::c_uint,
pub activecnt: ::std::os::raw::c_int,
pub read_req: uv_read_t,
pub stream: uv_stream_s__bindgen_ty_2,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_stream_s__bindgen_ty_1 {
pub fd: ::std::os::raw::c_int,
pub reserved: [*mut ::std::os::raw::c_void; 4usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_stream_s__bindgen_ty_1"]
[::std::mem::size_of::<uv_stream_s__bindgen_ty_1>() - 32usize];
["Alignment of uv_stream_s__bindgen_ty_1"]
[::std::mem::align_of::<uv_stream_s__bindgen_ty_1>() - 8usize];
["Offset of field: uv_stream_s__bindgen_ty_1::fd"]
[::std::mem::offset_of!(uv_stream_s__bindgen_ty_1, fd) - 0usize];
["Offset of field: uv_stream_s__bindgen_ty_1::reserved"]
[::std::mem::offset_of!(uv_stream_s__bindgen_ty_1, reserved) - 0usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_stream_s__bindgen_ty_2 {
pub conn: uv_stream_s__bindgen_ty_2__bindgen_ty_1,
pub serv: uv_stream_s__bindgen_ty_2__bindgen_ty_2,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_stream_s__bindgen_ty_2__bindgen_ty_1 {
pub write_reqs_pending: ::std::os::raw::c_uint,
pub shutdown_req: *mut uv_shutdown_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_stream_s__bindgen_ty_2__bindgen_ty_1"]
[::std::mem::size_of::<uv_stream_s__bindgen_ty_2__bindgen_ty_1>() - 16usize];
["Alignment of uv_stream_s__bindgen_ty_2__bindgen_ty_1"]
[::std::mem::align_of::<uv_stream_s__bindgen_ty_2__bindgen_ty_1>() - 8usize];
["Offset of field: uv_stream_s__bindgen_ty_2__bindgen_ty_1::write_reqs_pending"]
[::std::mem::offset_of!(uv_stream_s__bindgen_ty_2__bindgen_ty_1, write_reqs_pending) - 0usize];
["Offset of field: uv_stream_s__bindgen_ty_2__bindgen_ty_1::shutdown_req"]
[::std::mem::offset_of!(uv_stream_s__bindgen_ty_2__bindgen_ty_1, shutdown_req) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_stream_s__bindgen_ty_2__bindgen_ty_2 {
pub connection_cb: uv_connection_cb,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_stream_s__bindgen_ty_2__bindgen_ty_2"]
[::std::mem::size_of::<uv_stream_s__bindgen_ty_2__bindgen_ty_2>() - 8usize];
["Alignment of uv_stream_s__bindgen_ty_2__bindgen_ty_2"]
[::std::mem::align_of::<uv_stream_s__bindgen_ty_2__bindgen_ty_2>() - 8usize];
["Offset of field: uv_stream_s__bindgen_ty_2__bindgen_ty_2::connection_cb"]
[::std::mem::offset_of!(uv_stream_s__bindgen_ty_2__bindgen_ty_2, connection_cb) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_stream_s__bindgen_ty_2"]
[::std::mem::size_of::<uv_stream_s__bindgen_ty_2>() - 16usize];
["Alignment of uv_stream_s__bindgen_ty_2"]
[::std::mem::align_of::<uv_stream_s__bindgen_ty_2>() - 8usize];
["Offset of field: uv_stream_s__bindgen_ty_2::conn"]
[::std::mem::offset_of!(uv_stream_s__bindgen_ty_2, conn) - 0usize];
["Offset of field: uv_stream_s__bindgen_ty_2::serv"]
[::std::mem::offset_of!(uv_stream_s__bindgen_ty_2, serv) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_stream_s"][::std::mem::size_of::<uv_stream_s>() - 272usize];
["Alignment of uv_stream_s"][::std::mem::align_of::<uv_stream_s>() - 8usize];
["Offset of field: uv_stream_s::data"][::std::mem::offset_of!(uv_stream_s, data) - 0usize];
["Offset of field: uv_stream_s::loop_"][::std::mem::offset_of!(uv_stream_s, loop_) - 8usize];
["Offset of field: uv_stream_s::type_"][::std::mem::offset_of!(uv_stream_s, type_) - 16usize];
["Offset of field: uv_stream_s::close_cb"]
[::std::mem::offset_of!(uv_stream_s, close_cb) - 24usize];
["Offset of field: uv_stream_s::handle_queue"]
[::std::mem::offset_of!(uv_stream_s, handle_queue) - 32usize];
["Offset of field: uv_stream_s::u"][::std::mem::offset_of!(uv_stream_s, u) - 48usize];
["Offset of field: uv_stream_s::endgame_next"]
[::std::mem::offset_of!(uv_stream_s, endgame_next) - 80usize];
["Offset of field: uv_stream_s::flags"][::std::mem::offset_of!(uv_stream_s, flags) - 88usize];
["Offset of field: uv_stream_s::write_queue_size"]
[::std::mem::offset_of!(uv_stream_s, write_queue_size) - 96usize];
["Offset of field: uv_stream_s::alloc_cb"]
[::std::mem::offset_of!(uv_stream_s, alloc_cb) - 104usize];
["Offset of field: uv_stream_s::read_cb"]
[::std::mem::offset_of!(uv_stream_s, read_cb) - 112usize];
["Offset of field: uv_stream_s::reqs_pending"]
[::std::mem::offset_of!(uv_stream_s, reqs_pending) - 120usize];
["Offset of field: uv_stream_s::activecnt"]
[::std::mem::offset_of!(uv_stream_s, activecnt) - 124usize];
["Offset of field: uv_stream_s::read_req"]
[::std::mem::offset_of!(uv_stream_s, read_req) - 128usize];
["Offset of field: uv_stream_s::stream"][::std::mem::offset_of!(uv_stream_s, stream) - 256usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_write_s {
pub data: *mut ::std::os::raw::c_void,
pub type_: uv_req_type,
pub reserved: [*mut ::std::os::raw::c_void; 6usize],
pub u: uv_write_s__bindgen_ty_1,
pub next_req: *mut uv_req_s,
pub cb: uv_write_cb,
pub send_handle: *mut uv_stream_t,
pub handle: *mut uv_stream_t,
pub coalesced: ::std::os::raw::c_int,
pub write_buffer: uv_buf_t,
pub event_handle: HANDLE,
pub wait_handle: HANDLE,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_write_s__bindgen_ty_1 {
pub io: uv_write_s__bindgen_ty_1__bindgen_ty_1,
pub connect: uv_write_s__bindgen_ty_1__bindgen_ty_2,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_write_s__bindgen_ty_1__bindgen_ty_1 {
pub overlapped: OVERLAPPED,
pub queued_bytes: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_write_s__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::size_of::<uv_write_s__bindgen_ty_1__bindgen_ty_1>() - 40usize];
["Alignment of uv_write_s__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::align_of::<uv_write_s__bindgen_ty_1__bindgen_ty_1>() - 8usize];
["Offset of field: uv_write_s__bindgen_ty_1__bindgen_ty_1::overlapped"]
[::std::mem::offset_of!(uv_write_s__bindgen_ty_1__bindgen_ty_1, overlapped) - 0usize];
["Offset of field: uv_write_s__bindgen_ty_1__bindgen_ty_1::queued_bytes"]
[::std::mem::offset_of!(uv_write_s__bindgen_ty_1__bindgen_ty_1, queued_bytes) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_write_s__bindgen_ty_1__bindgen_ty_2 {
pub result: ULONG_PTR,
pub pipeHandle: HANDLE,
pub duplex_flags: DWORD,
pub name: *mut WCHAR,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_write_s__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::size_of::<uv_write_s__bindgen_ty_1__bindgen_ty_2>() - 32usize];
["Alignment of uv_write_s__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::align_of::<uv_write_s__bindgen_ty_1__bindgen_ty_2>() - 8usize];
["Offset of field: uv_write_s__bindgen_ty_1__bindgen_ty_2::result"]
[::std::mem::offset_of!(uv_write_s__bindgen_ty_1__bindgen_ty_2, result) - 0usize];
["Offset of field: uv_write_s__bindgen_ty_1__bindgen_ty_2::pipeHandle"]
[::std::mem::offset_of!(uv_write_s__bindgen_ty_1__bindgen_ty_2, pipeHandle) - 8usize];
["Offset of field: uv_write_s__bindgen_ty_1__bindgen_ty_2::duplex_flags"]
[::std::mem::offset_of!(uv_write_s__bindgen_ty_1__bindgen_ty_2, duplex_flags) - 16usize];
["Offset of field: uv_write_s__bindgen_ty_1__bindgen_ty_2::name"]
[::std::mem::offset_of!(uv_write_s__bindgen_ty_1__bindgen_ty_2, name) - 24usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_write_s__bindgen_ty_1"][::std::mem::size_of::<uv_write_s__bindgen_ty_1>() - 40usize];
["Alignment of uv_write_s__bindgen_ty_1"]
[::std::mem::align_of::<uv_write_s__bindgen_ty_1>() - 8usize];
["Offset of field: uv_write_s__bindgen_ty_1::io"]
[::std::mem::offset_of!(uv_write_s__bindgen_ty_1, io) - 0usize];
["Offset of field: uv_write_s__bindgen_ty_1::connect"]
[::std::mem::offset_of!(uv_write_s__bindgen_ty_1, connect) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_write_s"][::std::mem::size_of::<uv_write_s>() - 176usize];
["Alignment of uv_write_s"][::std::mem::align_of::<uv_write_s>() - 8usize];
["Offset of field: uv_write_s::data"][::std::mem::offset_of!(uv_write_s, data) - 0usize];
["Offset of field: uv_write_s::type_"][::std::mem::offset_of!(uv_write_s, type_) - 8usize];
["Offset of field: uv_write_s::reserved"][::std::mem::offset_of!(uv_write_s, reserved) - 16usize];
["Offset of field: uv_write_s::u"][::std::mem::offset_of!(uv_write_s, u) - 64usize];
["Offset of field: uv_write_s::next_req"]
[::std::mem::offset_of!(uv_write_s, next_req) - 104usize];
["Offset of field: uv_write_s::cb"][::std::mem::offset_of!(uv_write_s, cb) - 112usize];
["Offset of field: uv_write_s::send_handle"]
[::std::mem::offset_of!(uv_write_s, send_handle) - 120usize];
["Offset of field: uv_write_s::handle"][::std::mem::offset_of!(uv_write_s, handle) - 128usize];
["Offset of field: uv_write_s::coalesced"]
[::std::mem::offset_of!(uv_write_s, coalesced) - 136usize];
["Offset of field: uv_write_s::write_buffer"]
[::std::mem::offset_of!(uv_write_s, write_buffer) - 144usize];
["Offset of field: uv_write_s::event_handle"]
[::std::mem::offset_of!(uv_write_s, event_handle) - 160usize];
["Offset of field: uv_write_s::wait_handle"]
[::std::mem::offset_of!(uv_write_s, wait_handle) - 168usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_tcp_s {
pub data: *mut ::std::os::raw::c_void,
pub loop_: *mut uv_loop_t,
pub type_: uv_handle_type,
pub close_cb: uv_close_cb,
pub handle_queue: uv__queue,
pub u: uv_tcp_s__bindgen_ty_1,
pub endgame_next: *mut uv_handle_t,
pub flags: ::std::os::raw::c_uint,
pub write_queue_size: usize,
pub alloc_cb: uv_alloc_cb,
pub read_cb: uv_read_cb,
pub reqs_pending: ::std::os::raw::c_uint,
pub activecnt: ::std::os::raw::c_int,
pub read_req: uv_read_t,
pub stream: uv_tcp_s__bindgen_ty_2,
pub socket: SOCKET,
pub delayed_error: ::std::os::raw::c_int,
pub tcp: uv_tcp_s__bindgen_ty_3,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_tcp_s__bindgen_ty_1 {
pub fd: ::std::os::raw::c_int,
pub reserved: [*mut ::std::os::raw::c_void; 4usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_tcp_s__bindgen_ty_1"][::std::mem::size_of::<uv_tcp_s__bindgen_ty_1>() - 32usize];
["Alignment of uv_tcp_s__bindgen_ty_1"]
[::std::mem::align_of::<uv_tcp_s__bindgen_ty_1>() - 8usize];
["Offset of field: uv_tcp_s__bindgen_ty_1::fd"]
[::std::mem::offset_of!(uv_tcp_s__bindgen_ty_1, fd) - 0usize];
["Offset of field: uv_tcp_s__bindgen_ty_1::reserved"]
[::std::mem::offset_of!(uv_tcp_s__bindgen_ty_1, reserved) - 0usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_tcp_s__bindgen_ty_2 {
pub conn: uv_tcp_s__bindgen_ty_2__bindgen_ty_1,
pub serv: uv_tcp_s__bindgen_ty_2__bindgen_ty_2,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_tcp_s__bindgen_ty_2__bindgen_ty_1 {
pub write_reqs_pending: ::std::os::raw::c_uint,
pub shutdown_req: *mut uv_shutdown_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_tcp_s__bindgen_ty_2__bindgen_ty_1"]
[::std::mem::size_of::<uv_tcp_s__bindgen_ty_2__bindgen_ty_1>() - 16usize];
["Alignment of uv_tcp_s__bindgen_ty_2__bindgen_ty_1"]
[::std::mem::align_of::<uv_tcp_s__bindgen_ty_2__bindgen_ty_1>() - 8usize];
["Offset of field: uv_tcp_s__bindgen_ty_2__bindgen_ty_1::write_reqs_pending"]
[::std::mem::offset_of!(uv_tcp_s__bindgen_ty_2__bindgen_ty_1, write_reqs_pending) - 0usize];
["Offset of field: uv_tcp_s__bindgen_ty_2__bindgen_ty_1::shutdown_req"]
[::std::mem::offset_of!(uv_tcp_s__bindgen_ty_2__bindgen_ty_1, shutdown_req) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_tcp_s__bindgen_ty_2__bindgen_ty_2 {
pub connection_cb: uv_connection_cb,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_tcp_s__bindgen_ty_2__bindgen_ty_2"]
[::std::mem::size_of::<uv_tcp_s__bindgen_ty_2__bindgen_ty_2>() - 8usize];
["Alignment of uv_tcp_s__bindgen_ty_2__bindgen_ty_2"]
[::std::mem::align_of::<uv_tcp_s__bindgen_ty_2__bindgen_ty_2>() - 8usize];
["Offset of field: uv_tcp_s__bindgen_ty_2__bindgen_ty_2::connection_cb"]
[::std::mem::offset_of!(uv_tcp_s__bindgen_ty_2__bindgen_ty_2, connection_cb) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_tcp_s__bindgen_ty_2"][::std::mem::size_of::<uv_tcp_s__bindgen_ty_2>() - 16usize];
["Alignment of uv_tcp_s__bindgen_ty_2"]
[::std::mem::align_of::<uv_tcp_s__bindgen_ty_2>() - 8usize];
["Offset of field: uv_tcp_s__bindgen_ty_2::conn"]
[::std::mem::offset_of!(uv_tcp_s__bindgen_ty_2, conn) - 0usize];
["Offset of field: uv_tcp_s__bindgen_ty_2::serv"]
[::std::mem::offset_of!(uv_tcp_s__bindgen_ty_2, serv) - 0usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_tcp_s__bindgen_ty_3 {
pub serv: uv_tcp_s__bindgen_ty_3__bindgen_ty_1,
pub conn: uv_tcp_s__bindgen_ty_3__bindgen_ty_2,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_tcp_s__bindgen_ty_3__bindgen_ty_1 {
pub accept_reqs: *mut uv_tcp_accept_t,
pub processed_accepts: ::std::os::raw::c_uint,
pub pending_accepts: *mut uv_tcp_accept_t,
pub func_acceptex: LPFN_ACCEPTEX,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_tcp_s__bindgen_ty_3__bindgen_ty_1"]
[::std::mem::size_of::<uv_tcp_s__bindgen_ty_3__bindgen_ty_1>() - 32usize];
["Alignment of uv_tcp_s__bindgen_ty_3__bindgen_ty_1"]
[::std::mem::align_of::<uv_tcp_s__bindgen_ty_3__bindgen_ty_1>() - 8usize];
["Offset of field: uv_tcp_s__bindgen_ty_3__bindgen_ty_1::accept_reqs"]
[::std::mem::offset_of!(uv_tcp_s__bindgen_ty_3__bindgen_ty_1, accept_reqs) - 0usize];
["Offset of field: uv_tcp_s__bindgen_ty_3__bindgen_ty_1::processed_accepts"]
[::std::mem::offset_of!(uv_tcp_s__bindgen_ty_3__bindgen_ty_1, processed_accepts) - 8usize];
["Offset of field: uv_tcp_s__bindgen_ty_3__bindgen_ty_1::pending_accepts"]
[::std::mem::offset_of!(uv_tcp_s__bindgen_ty_3__bindgen_ty_1, pending_accepts) - 16usize];
["Offset of field: uv_tcp_s__bindgen_ty_3__bindgen_ty_1::func_acceptex"]
[::std::mem::offset_of!(uv_tcp_s__bindgen_ty_3__bindgen_ty_1, func_acceptex) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_tcp_s__bindgen_ty_3__bindgen_ty_2 {
pub read_buffer: uv_buf_t,
pub func_connectex: LPFN_CONNECTEX,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_tcp_s__bindgen_ty_3__bindgen_ty_2"]
[::std::mem::size_of::<uv_tcp_s__bindgen_ty_3__bindgen_ty_2>() - 24usize];
["Alignment of uv_tcp_s__bindgen_ty_3__bindgen_ty_2"]
[::std::mem::align_of::<uv_tcp_s__bindgen_ty_3__bindgen_ty_2>() - 8usize];
["Offset of field: uv_tcp_s__bindgen_ty_3__bindgen_ty_2::read_buffer"]
[::std::mem::offset_of!(uv_tcp_s__bindgen_ty_3__bindgen_ty_2, read_buffer) - 0usize];
["Offset of field: uv_tcp_s__bindgen_ty_3__bindgen_ty_2::func_connectex"]
[::std::mem::offset_of!(uv_tcp_s__bindgen_ty_3__bindgen_ty_2, func_connectex) - 16usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_tcp_s__bindgen_ty_3"][::std::mem::size_of::<uv_tcp_s__bindgen_ty_3>() - 32usize];
["Alignment of uv_tcp_s__bindgen_ty_3"]
[::std::mem::align_of::<uv_tcp_s__bindgen_ty_3>() - 8usize];
["Offset of field: uv_tcp_s__bindgen_ty_3::serv"]
[::std::mem::offset_of!(uv_tcp_s__bindgen_ty_3, serv) - 0usize];
["Offset of field: uv_tcp_s__bindgen_ty_3::conn"]
[::std::mem::offset_of!(uv_tcp_s__bindgen_ty_3, conn) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_tcp_s"][::std::mem::size_of::<uv_tcp_s>() - 320usize];
["Alignment of uv_tcp_s"][::std::mem::align_of::<uv_tcp_s>() - 8usize];
["Offset of field: uv_tcp_s::data"][::std::mem::offset_of!(uv_tcp_s, data) - 0usize];
["Offset of field: uv_tcp_s::loop_"][::std::mem::offset_of!(uv_tcp_s, loop_) - 8usize];
["Offset of field: uv_tcp_s::type_"][::std::mem::offset_of!(uv_tcp_s, type_) - 16usize];
["Offset of field: uv_tcp_s::close_cb"][::std::mem::offset_of!(uv_tcp_s, close_cb) - 24usize];
["Offset of field: uv_tcp_s::handle_queue"]
[::std::mem::offset_of!(uv_tcp_s, handle_queue) - 32usize];
["Offset of field: uv_tcp_s::u"][::std::mem::offset_of!(uv_tcp_s, u) - 48usize];
["Offset of field: uv_tcp_s::endgame_next"]
[::std::mem::offset_of!(uv_tcp_s, endgame_next) - 80usize];
["Offset of field: uv_tcp_s::flags"][::std::mem::offset_of!(uv_tcp_s, flags) - 88usize];
["Offset of field: uv_tcp_s::write_queue_size"]
[::std::mem::offset_of!(uv_tcp_s, write_queue_size) - 96usize];
["Offset of field: uv_tcp_s::alloc_cb"][::std::mem::offset_of!(uv_tcp_s, alloc_cb) - 104usize];
["Offset of field: uv_tcp_s::read_cb"][::std::mem::offset_of!(uv_tcp_s, read_cb) - 112usize];
["Offset of field: uv_tcp_s::reqs_pending"]
[::std::mem::offset_of!(uv_tcp_s, reqs_pending) - 120usize];
["Offset of field: uv_tcp_s::activecnt"][::std::mem::offset_of!(uv_tcp_s, activecnt) - 124usize];
["Offset of field: uv_tcp_s::read_req"][::std::mem::offset_of!(uv_tcp_s, read_req) - 128usize];
["Offset of field: uv_tcp_s::stream"][::std::mem::offset_of!(uv_tcp_s, stream) - 256usize];
["Offset of field: uv_tcp_s::socket"][::std::mem::offset_of!(uv_tcp_s, socket) - 272usize];
["Offset of field: uv_tcp_s::delayed_error"]
[::std::mem::offset_of!(uv_tcp_s, delayed_error) - 280usize];
["Offset of field: uv_tcp_s::tcp"][::std::mem::offset_of!(uv_tcp_s, tcp) - 288usize];
};
impl uv_tcp_flags {
pub const UV_TCP_IPV6ONLY: uv_tcp_flags = uv_tcp_flags(1);
}
#[repr(transparent)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct uv_tcp_flags(pub ::std::os::raw::c_int);
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_connect_s {
pub data: *mut ::std::os::raw::c_void,
pub type_: uv_req_type,
pub reserved: [*mut ::std::os::raw::c_void; 6usize],
pub u: uv_connect_s__bindgen_ty_1,
pub next_req: *mut uv_req_s,
pub cb: uv_connect_cb,
pub handle: *mut uv_stream_t,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_connect_s__bindgen_ty_1 {
pub io: uv_connect_s__bindgen_ty_1__bindgen_ty_1,
pub connect: uv_connect_s__bindgen_ty_1__bindgen_ty_2,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_connect_s__bindgen_ty_1__bindgen_ty_1 {
pub overlapped: OVERLAPPED,
pub queued_bytes: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_connect_s__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::size_of::<uv_connect_s__bindgen_ty_1__bindgen_ty_1>() - 40usize];
["Alignment of uv_connect_s__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::align_of::<uv_connect_s__bindgen_ty_1__bindgen_ty_1>() - 8usize];
["Offset of field: uv_connect_s__bindgen_ty_1__bindgen_ty_1::overlapped"]
[::std::mem::offset_of!(uv_connect_s__bindgen_ty_1__bindgen_ty_1, overlapped) - 0usize];
["Offset of field: uv_connect_s__bindgen_ty_1__bindgen_ty_1::queued_bytes"]
[::std::mem::offset_of!(uv_connect_s__bindgen_ty_1__bindgen_ty_1, queued_bytes) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_connect_s__bindgen_ty_1__bindgen_ty_2 {
pub result: ULONG_PTR,
pub pipeHandle: HANDLE,
pub duplex_flags: DWORD,
pub name: *mut WCHAR,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_connect_s__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::size_of::<uv_connect_s__bindgen_ty_1__bindgen_ty_2>() - 32usize];
["Alignment of uv_connect_s__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::align_of::<uv_connect_s__bindgen_ty_1__bindgen_ty_2>() - 8usize];
["Offset of field: uv_connect_s__bindgen_ty_1__bindgen_ty_2::result"]
[::std::mem::offset_of!(uv_connect_s__bindgen_ty_1__bindgen_ty_2, result) - 0usize];
["Offset of field: uv_connect_s__bindgen_ty_1__bindgen_ty_2::pipeHandle"]
[::std::mem::offset_of!(uv_connect_s__bindgen_ty_1__bindgen_ty_2, pipeHandle) - 8usize];
["Offset of field: uv_connect_s__bindgen_ty_1__bindgen_ty_2::duplex_flags"]
[::std::mem::offset_of!(uv_connect_s__bindgen_ty_1__bindgen_ty_2, duplex_flags) - 16usize];
["Offset of field: uv_connect_s__bindgen_ty_1__bindgen_ty_2::name"]
[::std::mem::offset_of!(uv_connect_s__bindgen_ty_1__bindgen_ty_2, name) - 24usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_connect_s__bindgen_ty_1"]
[::std::mem::size_of::<uv_connect_s__bindgen_ty_1>() - 40usize];
["Alignment of uv_connect_s__bindgen_ty_1"]
[::std::mem::align_of::<uv_connect_s__bindgen_ty_1>() - 8usize];
["Offset of field: uv_connect_s__bindgen_ty_1::io"]
[::std::mem::offset_of!(uv_connect_s__bindgen_ty_1, io) - 0usize];
["Offset of field: uv_connect_s__bindgen_ty_1::connect"]
[::std::mem::offset_of!(uv_connect_s__bindgen_ty_1, connect) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_connect_s"][::std::mem::size_of::<uv_connect_s>() - 128usize];
["Alignment of uv_connect_s"][::std::mem::align_of::<uv_connect_s>() - 8usize];
["Offset of field: uv_connect_s::data"][::std::mem::offset_of!(uv_connect_s, data) - 0usize];
["Offset of field: uv_connect_s::type_"][::std::mem::offset_of!(uv_connect_s, type_) - 8usize];
["Offset of field: uv_connect_s::reserved"]
[::std::mem::offset_of!(uv_connect_s, reserved) - 16usize];
["Offset of field: uv_connect_s::u"][::std::mem::offset_of!(uv_connect_s, u) - 64usize];
["Offset of field: uv_connect_s::next_req"]
[::std::mem::offset_of!(uv_connect_s, next_req) - 104usize];
["Offset of field: uv_connect_s::cb"][::std::mem::offset_of!(uv_connect_s, cb) - 112usize];
["Offset of field: uv_connect_s::handle"]
[::std::mem::offset_of!(uv_connect_s, handle) - 120usize];
};
impl uv_udp_flags {
pub const UV_UDP_IPV6ONLY: uv_udp_flags = uv_udp_flags(1);
}
impl uv_udp_flags {
pub const UV_UDP_PARTIAL: uv_udp_flags = uv_udp_flags(2);
}
impl uv_udp_flags {
pub const UV_UDP_REUSEADDR: uv_udp_flags = uv_udp_flags(4);
}
impl uv_udp_flags {
pub const UV_UDP_MMSG_CHUNK: uv_udp_flags = uv_udp_flags(8);
}
impl uv_udp_flags {
pub const UV_UDP_MMSG_FREE: uv_udp_flags = uv_udp_flags(16);
}
impl uv_udp_flags {
pub const UV_UDP_LINUX_RECVERR: uv_udp_flags = uv_udp_flags(32);
}
impl uv_udp_flags {
pub const UV_UDP_RECVMMSG: uv_udp_flags = uv_udp_flags(256);
}
#[repr(transparent)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct uv_udp_flags(pub ::std::os::raw::c_int);
pub type uv_udp_send_cb = ::std::option::Option<
unsafe extern "C" fn(req: *mut uv_udp_send_t, status: ::std::os::raw::c_int),
>;
pub type uv_udp_recv_cb = ::std::option::Option<
unsafe extern "C" fn(
handle: *mut uv_udp_t,
nread: isize,
buf: *const uv_buf_t,
addr: *const sockaddr,
flags: ::std::os::raw::c_uint,
),
>;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_udp_s {
pub data: *mut ::std::os::raw::c_void,
pub loop_: *mut uv_loop_t,
pub type_: uv_handle_type,
pub close_cb: uv_close_cb,
pub handle_queue: uv__queue,
pub u: uv_udp_s__bindgen_ty_1,
pub endgame_next: *mut uv_handle_t,
pub flags: ::std::os::raw::c_uint,
pub send_queue_size: usize,
pub send_queue_count: usize,
pub socket: SOCKET,
pub reqs_pending: ::std::os::raw::c_uint,
pub activecnt: ::std::os::raw::c_int,
pub recv_req: uv_req_t,
pub recv_buffer: uv_buf_t,
pub recv_from: sockaddr_storage,
pub recv_from_len: ::std::os::raw::c_int,
pub recv_cb: uv_udp_recv_cb,
pub alloc_cb: uv_alloc_cb,
pub func_wsarecv: LPFN_WSARECV,
pub func_wsarecvfrom: LPFN_WSARECVFROM,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_udp_s__bindgen_ty_1 {
pub fd: ::std::os::raw::c_int,
pub reserved: [*mut ::std::os::raw::c_void; 4usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_udp_s__bindgen_ty_1"][::std::mem::size_of::<uv_udp_s__bindgen_ty_1>() - 32usize];
["Alignment of uv_udp_s__bindgen_ty_1"]
[::std::mem::align_of::<uv_udp_s__bindgen_ty_1>() - 8usize];
["Offset of field: uv_udp_s__bindgen_ty_1::fd"]
[::std::mem::offset_of!(uv_udp_s__bindgen_ty_1, fd) - 0usize];
["Offset of field: uv_udp_s__bindgen_ty_1::reserved"]
[::std::mem::offset_of!(uv_udp_s__bindgen_ty_1, reserved) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_udp_s"][::std::mem::size_of::<uv_udp_s>() - 424usize];
["Alignment of uv_udp_s"][::std::mem::align_of::<uv_udp_s>() - 8usize];
["Offset of field: uv_udp_s::data"][::std::mem::offset_of!(uv_udp_s, data) - 0usize];
["Offset of field: uv_udp_s::loop_"][::std::mem::offset_of!(uv_udp_s, loop_) - 8usize];
["Offset of field: uv_udp_s::type_"][::std::mem::offset_of!(uv_udp_s, type_) - 16usize];
["Offset of field: uv_udp_s::close_cb"][::std::mem::offset_of!(uv_udp_s, close_cb) - 24usize];
["Offset of field: uv_udp_s::handle_queue"]
[::std::mem::offset_of!(uv_udp_s, handle_queue) - 32usize];
["Offset of field: uv_udp_s::u"][::std::mem::offset_of!(uv_udp_s, u) - 48usize];
["Offset of field: uv_udp_s::endgame_next"]
[::std::mem::offset_of!(uv_udp_s, endgame_next) - 80usize];
["Offset of field: uv_udp_s::flags"][::std::mem::offset_of!(uv_udp_s, flags) - 88usize];
["Offset of field: uv_udp_s::send_queue_size"]
[::std::mem::offset_of!(uv_udp_s, send_queue_size) - 96usize];
["Offset of field: uv_udp_s::send_queue_count"]
[::std::mem::offset_of!(uv_udp_s, send_queue_count) - 104usize];
["Offset of field: uv_udp_s::socket"][::std::mem::offset_of!(uv_udp_s, socket) - 112usize];
["Offset of field: uv_udp_s::reqs_pending"]
[::std::mem::offset_of!(uv_udp_s, reqs_pending) - 120usize];
["Offset of field: uv_udp_s::activecnt"][::std::mem::offset_of!(uv_udp_s, activecnt) - 124usize];
["Offset of field: uv_udp_s::recv_req"][::std::mem::offset_of!(uv_udp_s, recv_req) - 128usize];
["Offset of field: uv_udp_s::recv_buffer"]
[::std::mem::offset_of!(uv_udp_s, recv_buffer) - 240usize];
["Offset of field: uv_udp_s::recv_from"][::std::mem::offset_of!(uv_udp_s, recv_from) - 256usize];
["Offset of field: uv_udp_s::recv_from_len"]
[::std::mem::offset_of!(uv_udp_s, recv_from_len) - 384usize];
["Offset of field: uv_udp_s::recv_cb"][::std::mem::offset_of!(uv_udp_s, recv_cb) - 392usize];
["Offset of field: uv_udp_s::alloc_cb"][::std::mem::offset_of!(uv_udp_s, alloc_cb) - 400usize];
["Offset of field: uv_udp_s::func_wsarecv"]
[::std::mem::offset_of!(uv_udp_s, func_wsarecv) - 408usize];
["Offset of field: uv_udp_s::func_wsarecvfrom"]
[::std::mem::offset_of!(uv_udp_s, func_wsarecvfrom) - 416usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_udp_send_s {
pub data: *mut ::std::os::raw::c_void,
pub type_: uv_req_type,
pub reserved: [*mut ::std::os::raw::c_void; 6usize],
pub u: uv_udp_send_s__bindgen_ty_1,
pub next_req: *mut uv_req_s,
pub handle: *mut uv_udp_t,
pub cb: uv_udp_send_cb,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_udp_send_s__bindgen_ty_1 {
pub io: uv_udp_send_s__bindgen_ty_1__bindgen_ty_1,
pub connect: uv_udp_send_s__bindgen_ty_1__bindgen_ty_2,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_udp_send_s__bindgen_ty_1__bindgen_ty_1 {
pub overlapped: OVERLAPPED,
pub queued_bytes: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_udp_send_s__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::size_of::<uv_udp_send_s__bindgen_ty_1__bindgen_ty_1>() - 40usize];
["Alignment of uv_udp_send_s__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::align_of::<uv_udp_send_s__bindgen_ty_1__bindgen_ty_1>() - 8usize];
["Offset of field: uv_udp_send_s__bindgen_ty_1__bindgen_ty_1::overlapped"]
[::std::mem::offset_of!(uv_udp_send_s__bindgen_ty_1__bindgen_ty_1, overlapped) - 0usize];
["Offset of field: uv_udp_send_s__bindgen_ty_1__bindgen_ty_1::queued_bytes"]
[::std::mem::offset_of!(uv_udp_send_s__bindgen_ty_1__bindgen_ty_1, queued_bytes) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_udp_send_s__bindgen_ty_1__bindgen_ty_2 {
pub result: ULONG_PTR,
pub pipeHandle: HANDLE,
pub duplex_flags: DWORD,
pub name: *mut WCHAR,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_udp_send_s__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::size_of::<uv_udp_send_s__bindgen_ty_1__bindgen_ty_2>() - 32usize];
["Alignment of uv_udp_send_s__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::align_of::<uv_udp_send_s__bindgen_ty_1__bindgen_ty_2>() - 8usize];
["Offset of field: uv_udp_send_s__bindgen_ty_1__bindgen_ty_2::result"]
[::std::mem::offset_of!(uv_udp_send_s__bindgen_ty_1__bindgen_ty_2, result) - 0usize];
["Offset of field: uv_udp_send_s__bindgen_ty_1__bindgen_ty_2::pipeHandle"]
[::std::mem::offset_of!(uv_udp_send_s__bindgen_ty_1__bindgen_ty_2, pipeHandle) - 8usize];
["Offset of field: uv_udp_send_s__bindgen_ty_1__bindgen_ty_2::duplex_flags"]
[::std::mem::offset_of!(uv_udp_send_s__bindgen_ty_1__bindgen_ty_2, duplex_flags) - 16usize];
["Offset of field: uv_udp_send_s__bindgen_ty_1__bindgen_ty_2::name"]
[::std::mem::offset_of!(uv_udp_send_s__bindgen_ty_1__bindgen_ty_2, name) - 24usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_udp_send_s__bindgen_ty_1"]
[::std::mem::size_of::<uv_udp_send_s__bindgen_ty_1>() - 40usize];
["Alignment of uv_udp_send_s__bindgen_ty_1"]
[::std::mem::align_of::<uv_udp_send_s__bindgen_ty_1>() - 8usize];
["Offset of field: uv_udp_send_s__bindgen_ty_1::io"]
[::std::mem::offset_of!(uv_udp_send_s__bindgen_ty_1, io) - 0usize];
["Offset of field: uv_udp_send_s__bindgen_ty_1::connect"]
[::std::mem::offset_of!(uv_udp_send_s__bindgen_ty_1, connect) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_udp_send_s"][::std::mem::size_of::<uv_udp_send_s>() - 128usize];
["Alignment of uv_udp_send_s"][::std::mem::align_of::<uv_udp_send_s>() - 8usize];
["Offset of field: uv_udp_send_s::data"][::std::mem::offset_of!(uv_udp_send_s, data) - 0usize];
["Offset of field: uv_udp_send_s::type_"][::std::mem::offset_of!(uv_udp_send_s, type_) - 8usize];
["Offset of field: uv_udp_send_s::reserved"]
[::std::mem::offset_of!(uv_udp_send_s, reserved) - 16usize];
["Offset of field: uv_udp_send_s::u"][::std::mem::offset_of!(uv_udp_send_s, u) - 64usize];
["Offset of field: uv_udp_send_s::next_req"]
[::std::mem::offset_of!(uv_udp_send_s, next_req) - 104usize];
["Offset of field: uv_udp_send_s::handle"]
[::std::mem::offset_of!(uv_udp_send_s, handle) - 112usize];
["Offset of field: uv_udp_send_s::cb"][::std::mem::offset_of!(uv_udp_send_s, cb) - 120usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_tty_s {
pub data: *mut ::std::os::raw::c_void,
pub loop_: *mut uv_loop_t,
pub type_: uv_handle_type,
pub close_cb: uv_close_cb,
pub handle_queue: uv__queue,
pub u: uv_tty_s__bindgen_ty_1,
pub endgame_next: *mut uv_handle_t,
pub flags: ::std::os::raw::c_uint,
pub write_queue_size: usize,
pub alloc_cb: uv_alloc_cb,
pub read_cb: uv_read_cb,
pub reqs_pending: ::std::os::raw::c_uint,
pub activecnt: ::std::os::raw::c_int,
pub read_req: uv_read_t,
pub stream: uv_tty_s__bindgen_ty_2,
pub handle: HANDLE,
pub tty: uv_tty_s__bindgen_ty_3,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_tty_s__bindgen_ty_1 {
pub fd: ::std::os::raw::c_int,
pub reserved: [*mut ::std::os::raw::c_void; 4usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_tty_s__bindgen_ty_1"][::std::mem::size_of::<uv_tty_s__bindgen_ty_1>() - 32usize];
["Alignment of uv_tty_s__bindgen_ty_1"]
[::std::mem::align_of::<uv_tty_s__bindgen_ty_1>() - 8usize];
["Offset of field: uv_tty_s__bindgen_ty_1::fd"]
[::std::mem::offset_of!(uv_tty_s__bindgen_ty_1, fd) - 0usize];
["Offset of field: uv_tty_s__bindgen_ty_1::reserved"]
[::std::mem::offset_of!(uv_tty_s__bindgen_ty_1, reserved) - 0usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_tty_s__bindgen_ty_2 {
pub conn: uv_tty_s__bindgen_ty_2__bindgen_ty_1,
pub serv: uv_tty_s__bindgen_ty_2__bindgen_ty_2,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_tty_s__bindgen_ty_2__bindgen_ty_1 {
pub write_reqs_pending: ::std::os::raw::c_uint,
pub shutdown_req: *mut uv_shutdown_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_tty_s__bindgen_ty_2__bindgen_ty_1"]
[::std::mem::size_of::<uv_tty_s__bindgen_ty_2__bindgen_ty_1>() - 16usize];
["Alignment of uv_tty_s__bindgen_ty_2__bindgen_ty_1"]
[::std::mem::align_of::<uv_tty_s__bindgen_ty_2__bindgen_ty_1>() - 8usize];
["Offset of field: uv_tty_s__bindgen_ty_2__bindgen_ty_1::write_reqs_pending"]
[::std::mem::offset_of!(uv_tty_s__bindgen_ty_2__bindgen_ty_1, write_reqs_pending) - 0usize];
["Offset of field: uv_tty_s__bindgen_ty_2__bindgen_ty_1::shutdown_req"]
[::std::mem::offset_of!(uv_tty_s__bindgen_ty_2__bindgen_ty_1, shutdown_req) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_tty_s__bindgen_ty_2__bindgen_ty_2 {
pub connection_cb: uv_connection_cb,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_tty_s__bindgen_ty_2__bindgen_ty_2"]
[::std::mem::size_of::<uv_tty_s__bindgen_ty_2__bindgen_ty_2>() - 8usize];
["Alignment of uv_tty_s__bindgen_ty_2__bindgen_ty_2"]
[::std::mem::align_of::<uv_tty_s__bindgen_ty_2__bindgen_ty_2>() - 8usize];
["Offset of field: uv_tty_s__bindgen_ty_2__bindgen_ty_2::connection_cb"]
[::std::mem::offset_of!(uv_tty_s__bindgen_ty_2__bindgen_ty_2, connection_cb) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_tty_s__bindgen_ty_2"][::std::mem::size_of::<uv_tty_s__bindgen_ty_2>() - 16usize];
["Alignment of uv_tty_s__bindgen_ty_2"]
[::std::mem::align_of::<uv_tty_s__bindgen_ty_2>() - 8usize];
["Offset of field: uv_tty_s__bindgen_ty_2::conn"]
[::std::mem::offset_of!(uv_tty_s__bindgen_ty_2, conn) - 0usize];
["Offset of field: uv_tty_s__bindgen_ty_2::serv"]
[::std::mem::offset_of!(uv_tty_s__bindgen_ty_2, serv) - 0usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_tty_s__bindgen_ty_3 {
pub rd: uv_tty_s__bindgen_ty_3__bindgen_ty_1,
pub wr: uv_tty_s__bindgen_ty_3__bindgen_ty_2,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_tty_s__bindgen_ty_3__bindgen_ty_1 {
pub unused_: HANDLE,
pub read_line_buffer: uv_buf_t,
pub read_raw_wait: HANDLE,
pub last_key: [::std::os::raw::c_char; 8usize],
pub last_key_offset: ::std::os::raw::c_uchar,
pub last_key_len: ::std::os::raw::c_uchar,
pub last_utf16_high_surrogate: WCHAR,
pub last_input_record: INPUT_RECORD,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_tty_s__bindgen_ty_3__bindgen_ty_1"]
[::std::mem::size_of::<uv_tty_s__bindgen_ty_3__bindgen_ty_1>() - 64usize];
["Alignment of uv_tty_s__bindgen_ty_3__bindgen_ty_1"]
[::std::mem::align_of::<uv_tty_s__bindgen_ty_3__bindgen_ty_1>() - 8usize];
["Offset of field: uv_tty_s__bindgen_ty_3__bindgen_ty_1::unused_"]
[::std::mem::offset_of!(uv_tty_s__bindgen_ty_3__bindgen_ty_1, unused_) - 0usize];
["Offset of field: uv_tty_s__bindgen_ty_3__bindgen_ty_1::read_line_buffer"]
[::std::mem::offset_of!(uv_tty_s__bindgen_ty_3__bindgen_ty_1, read_line_buffer) - 8usize];
["Offset of field: uv_tty_s__bindgen_ty_3__bindgen_ty_1::read_raw_wait"]
[::std::mem::offset_of!(uv_tty_s__bindgen_ty_3__bindgen_ty_1, read_raw_wait) - 24usize];
["Offset of field: uv_tty_s__bindgen_ty_3__bindgen_ty_1::last_key"]
[::std::mem::offset_of!(uv_tty_s__bindgen_ty_3__bindgen_ty_1, last_key) - 32usize];
["Offset of field: uv_tty_s__bindgen_ty_3__bindgen_ty_1::last_key_offset"]
[::std::mem::offset_of!(uv_tty_s__bindgen_ty_3__bindgen_ty_1, last_key_offset) - 40usize];
["Offset of field: uv_tty_s__bindgen_ty_3__bindgen_ty_1::last_key_len"]
[::std::mem::offset_of!(uv_tty_s__bindgen_ty_3__bindgen_ty_1, last_key_len) - 41usize];
["Offset of field: uv_tty_s__bindgen_ty_3__bindgen_ty_1::last_utf16_high_surrogate"][::std::mem::offset_of!(
uv_tty_s__bindgen_ty_3__bindgen_ty_1,
last_utf16_high_surrogate
) - 42usize];
["Offset of field: uv_tty_s__bindgen_ty_3__bindgen_ty_1::last_input_record"]
[::std::mem::offset_of!(uv_tty_s__bindgen_ty_3__bindgen_ty_1, last_input_record) - 44usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_tty_s__bindgen_ty_3__bindgen_ty_2 {
pub utf8_codepoint: ::std::os::raw::c_uint,
pub utf8_bytes_left: ::std::os::raw::c_uchar,
pub previous_eol: ::std::os::raw::c_uchar,
pub ansi_parser_state: ::std::os::raw::c_ushort,
pub ansi_csi_argc: ::std::os::raw::c_uchar,
pub ansi_csi_argv: [::std::os::raw::c_ushort; 4usize],
pub saved_position: COORD,
pub saved_attributes: WORD,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_tty_s__bindgen_ty_3__bindgen_ty_2"]
[::std::mem::size_of::<uv_tty_s__bindgen_ty_3__bindgen_ty_2>() - 24usize];
["Alignment of uv_tty_s__bindgen_ty_3__bindgen_ty_2"]
[::std::mem::align_of::<uv_tty_s__bindgen_ty_3__bindgen_ty_2>() - 4usize];
["Offset of field: uv_tty_s__bindgen_ty_3__bindgen_ty_2::utf8_codepoint"]
[::std::mem::offset_of!(uv_tty_s__bindgen_ty_3__bindgen_ty_2, utf8_codepoint) - 0usize];
["Offset of field: uv_tty_s__bindgen_ty_3__bindgen_ty_2::utf8_bytes_left"]
[::std::mem::offset_of!(uv_tty_s__bindgen_ty_3__bindgen_ty_2, utf8_bytes_left) - 4usize];
["Offset of field: uv_tty_s__bindgen_ty_3__bindgen_ty_2::previous_eol"]
[::std::mem::offset_of!(uv_tty_s__bindgen_ty_3__bindgen_ty_2, previous_eol) - 5usize];
["Offset of field: uv_tty_s__bindgen_ty_3__bindgen_ty_2::ansi_parser_state"]
[::std::mem::offset_of!(uv_tty_s__bindgen_ty_3__bindgen_ty_2, ansi_parser_state) - 6usize];
["Offset of field: uv_tty_s__bindgen_ty_3__bindgen_ty_2::ansi_csi_argc"]
[::std::mem::offset_of!(uv_tty_s__bindgen_ty_3__bindgen_ty_2, ansi_csi_argc) - 8usize];
["Offset of field: uv_tty_s__bindgen_ty_3__bindgen_ty_2::ansi_csi_argv"]
[::std::mem::offset_of!(uv_tty_s__bindgen_ty_3__bindgen_ty_2, ansi_csi_argv) - 10usize];
["Offset of field: uv_tty_s__bindgen_ty_3__bindgen_ty_2::saved_position"]
[::std::mem::offset_of!(uv_tty_s__bindgen_ty_3__bindgen_ty_2, saved_position) - 18usize];
["Offset of field: uv_tty_s__bindgen_ty_3__bindgen_ty_2::saved_attributes"]
[::std::mem::offset_of!(uv_tty_s__bindgen_ty_3__bindgen_ty_2, saved_attributes) - 22usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_tty_s__bindgen_ty_3"][::std::mem::size_of::<uv_tty_s__bindgen_ty_3>() - 64usize];
["Alignment of uv_tty_s__bindgen_ty_3"]
[::std::mem::align_of::<uv_tty_s__bindgen_ty_3>() - 8usize];
["Offset of field: uv_tty_s__bindgen_ty_3::rd"]
[::std::mem::offset_of!(uv_tty_s__bindgen_ty_3, rd) - 0usize];
["Offset of field: uv_tty_s__bindgen_ty_3::wr"]
[::std::mem::offset_of!(uv_tty_s__bindgen_ty_3, wr) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_tty_s"][::std::mem::size_of::<uv_tty_s>() - 344usize];
["Alignment of uv_tty_s"][::std::mem::align_of::<uv_tty_s>() - 8usize];
["Offset of field: uv_tty_s::data"][::std::mem::offset_of!(uv_tty_s, data) - 0usize];
["Offset of field: uv_tty_s::loop_"][::std::mem::offset_of!(uv_tty_s, loop_) - 8usize];
["Offset of field: uv_tty_s::type_"][::std::mem::offset_of!(uv_tty_s, type_) - 16usize];
["Offset of field: uv_tty_s::close_cb"][::std::mem::offset_of!(uv_tty_s, close_cb) - 24usize];
["Offset of field: uv_tty_s::handle_queue"]
[::std::mem::offset_of!(uv_tty_s, handle_queue) - 32usize];
["Offset of field: uv_tty_s::u"][::std::mem::offset_of!(uv_tty_s, u) - 48usize];
["Offset of field: uv_tty_s::endgame_next"]
[::std::mem::offset_of!(uv_tty_s, endgame_next) - 80usize];
["Offset of field: uv_tty_s::flags"][::std::mem::offset_of!(uv_tty_s, flags) - 88usize];
["Offset of field: uv_tty_s::write_queue_size"]
[::std::mem::offset_of!(uv_tty_s, write_queue_size) - 96usize];
["Offset of field: uv_tty_s::alloc_cb"][::std::mem::offset_of!(uv_tty_s, alloc_cb) - 104usize];
["Offset of field: uv_tty_s::read_cb"][::std::mem::offset_of!(uv_tty_s, read_cb) - 112usize];
["Offset of field: uv_tty_s::reqs_pending"]
[::std::mem::offset_of!(uv_tty_s, reqs_pending) - 120usize];
["Offset of field: uv_tty_s::activecnt"][::std::mem::offset_of!(uv_tty_s, activecnt) - 124usize];
["Offset of field: uv_tty_s::read_req"][::std::mem::offset_of!(uv_tty_s, read_req) - 128usize];
["Offset of field: uv_tty_s::stream"][::std::mem::offset_of!(uv_tty_s, stream) - 256usize];
["Offset of field: uv_tty_s::handle"][::std::mem::offset_of!(uv_tty_s, handle) - 272usize];
["Offset of field: uv_tty_s::tty"][::std::mem::offset_of!(uv_tty_s, tty) - 280usize];
};
impl uv_tty_mode_t {
pub const UV_TTY_MODE_NORMAL: uv_tty_mode_t = uv_tty_mode_t(0);
}
impl uv_tty_mode_t {
pub const UV_TTY_MODE_RAW: uv_tty_mode_t = uv_tty_mode_t(1);
}
impl uv_tty_mode_t {
pub const UV_TTY_MODE_IO: uv_tty_mode_t = uv_tty_mode_t(2);
}
#[repr(transparent)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct uv_tty_mode_t(pub ::std::os::raw::c_int);
impl uv_tty_vtermstate_t {
pub const UV_TTY_SUPPORTED: uv_tty_vtermstate_t = uv_tty_vtermstate_t(0);
}
impl uv_tty_vtermstate_t {
pub const UV_TTY_UNSUPPORTED: uv_tty_vtermstate_t = uv_tty_vtermstate_t(1);
}
#[repr(transparent)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct uv_tty_vtermstate_t(pub ::std::os::raw::c_int);
pub const UV_PIPE_NO_TRUNCATE: _bindgen_ty_4 = _bindgen_ty_4(1);
#[repr(transparent)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct _bindgen_ty_4(pub ::std::os::raw::c_int);
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_pipe_s {
pub data: *mut ::std::os::raw::c_void,
pub loop_: *mut uv_loop_t,
pub type_: uv_handle_type,
pub close_cb: uv_close_cb,
pub handle_queue: uv__queue,
pub u: uv_pipe_s__bindgen_ty_1,
pub endgame_next: *mut uv_handle_t,
pub flags: ::std::os::raw::c_uint,
pub write_queue_size: usize,
pub alloc_cb: uv_alloc_cb,
pub read_cb: uv_read_cb,
pub reqs_pending: ::std::os::raw::c_uint,
pub activecnt: ::std::os::raw::c_int,
pub read_req: uv_read_t,
pub stream: uv_pipe_s__bindgen_ty_2,
pub ipc: ::std::os::raw::c_int,
pub handle: HANDLE,
pub name: *mut WCHAR,
pub pipe: uv_pipe_s__bindgen_ty_3,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_pipe_s__bindgen_ty_1 {
pub fd: ::std::os::raw::c_int,
pub reserved: [*mut ::std::os::raw::c_void; 4usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_pipe_s__bindgen_ty_1"][::std::mem::size_of::<uv_pipe_s__bindgen_ty_1>() - 32usize];
["Alignment of uv_pipe_s__bindgen_ty_1"]
[::std::mem::align_of::<uv_pipe_s__bindgen_ty_1>() - 8usize];
["Offset of field: uv_pipe_s__bindgen_ty_1::fd"]
[::std::mem::offset_of!(uv_pipe_s__bindgen_ty_1, fd) - 0usize];
["Offset of field: uv_pipe_s__bindgen_ty_1::reserved"]
[::std::mem::offset_of!(uv_pipe_s__bindgen_ty_1, reserved) - 0usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_pipe_s__bindgen_ty_2 {
pub conn: uv_pipe_s__bindgen_ty_2__bindgen_ty_1,
pub serv: uv_pipe_s__bindgen_ty_2__bindgen_ty_2,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_pipe_s__bindgen_ty_2__bindgen_ty_1 {
pub write_reqs_pending: ::std::os::raw::c_uint,
pub shutdown_req: *mut uv_shutdown_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_pipe_s__bindgen_ty_2__bindgen_ty_1"]
[::std::mem::size_of::<uv_pipe_s__bindgen_ty_2__bindgen_ty_1>() - 16usize];
["Alignment of uv_pipe_s__bindgen_ty_2__bindgen_ty_1"]
[::std::mem::align_of::<uv_pipe_s__bindgen_ty_2__bindgen_ty_1>() - 8usize];
["Offset of field: uv_pipe_s__bindgen_ty_2__bindgen_ty_1::write_reqs_pending"]
[::std::mem::offset_of!(uv_pipe_s__bindgen_ty_2__bindgen_ty_1, write_reqs_pending) - 0usize];
["Offset of field: uv_pipe_s__bindgen_ty_2__bindgen_ty_1::shutdown_req"]
[::std::mem::offset_of!(uv_pipe_s__bindgen_ty_2__bindgen_ty_1, shutdown_req) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_pipe_s__bindgen_ty_2__bindgen_ty_2 {
pub connection_cb: uv_connection_cb,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_pipe_s__bindgen_ty_2__bindgen_ty_2"]
[::std::mem::size_of::<uv_pipe_s__bindgen_ty_2__bindgen_ty_2>() - 8usize];
["Alignment of uv_pipe_s__bindgen_ty_2__bindgen_ty_2"]
[::std::mem::align_of::<uv_pipe_s__bindgen_ty_2__bindgen_ty_2>() - 8usize];
["Offset of field: uv_pipe_s__bindgen_ty_2__bindgen_ty_2::connection_cb"]
[::std::mem::offset_of!(uv_pipe_s__bindgen_ty_2__bindgen_ty_2, connection_cb) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_pipe_s__bindgen_ty_2"][::std::mem::size_of::<uv_pipe_s__bindgen_ty_2>() - 16usize];
["Alignment of uv_pipe_s__bindgen_ty_2"]
[::std::mem::align_of::<uv_pipe_s__bindgen_ty_2>() - 8usize];
["Offset of field: uv_pipe_s__bindgen_ty_2::conn"]
[::std::mem::offset_of!(uv_pipe_s__bindgen_ty_2, conn) - 0usize];
["Offset of field: uv_pipe_s__bindgen_ty_2::serv"]
[::std::mem::offset_of!(uv_pipe_s__bindgen_ty_2, serv) - 0usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_pipe_s__bindgen_ty_3 {
pub serv: uv_pipe_s__bindgen_ty_3__bindgen_ty_1,
pub conn: uv_pipe_s__bindgen_ty_3__bindgen_ty_2,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_pipe_s__bindgen_ty_3__bindgen_ty_1 {
pub pending_instances: ::std::os::raw::c_int,
pub accept_reqs: *mut uv_pipe_accept_t,
pub pending_accepts: *mut uv_pipe_accept_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_pipe_s__bindgen_ty_3__bindgen_ty_1"]
[::std::mem::size_of::<uv_pipe_s__bindgen_ty_3__bindgen_ty_1>() - 24usize];
["Alignment of uv_pipe_s__bindgen_ty_3__bindgen_ty_1"]
[::std::mem::align_of::<uv_pipe_s__bindgen_ty_3__bindgen_ty_1>() - 8usize];
["Offset of field: uv_pipe_s__bindgen_ty_3__bindgen_ty_1::pending_instances"]
[::std::mem::offset_of!(uv_pipe_s__bindgen_ty_3__bindgen_ty_1, pending_instances) - 0usize];
["Offset of field: uv_pipe_s__bindgen_ty_3__bindgen_ty_1::accept_reqs"]
[::std::mem::offset_of!(uv_pipe_s__bindgen_ty_3__bindgen_ty_1, accept_reqs) - 8usize];
["Offset of field: uv_pipe_s__bindgen_ty_3__bindgen_ty_1::pending_accepts"]
[::std::mem::offset_of!(uv_pipe_s__bindgen_ty_3__bindgen_ty_1, pending_accepts) - 16usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_pipe_s__bindgen_ty_3__bindgen_ty_2 {
pub eof_timer: *mut uv_timer_t,
pub dummy: uv_write_t,
pub ipc_remote_pid: DWORD,
pub ipc_data_frame: uv_pipe_s__bindgen_ty_3__bindgen_ty_2__bindgen_ty_1,
pub ipc_xfer_queue: uv__queue,
pub ipc_xfer_queue_length: ::std::os::raw::c_int,
pub non_overlapped_writes_tail: *mut uv_write_t,
pub readfile_thread_lock: CRITICAL_SECTION,
pub readfile_thread_handle: HANDLE,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_pipe_s__bindgen_ty_3__bindgen_ty_2__bindgen_ty_1 {
pub payload_remaining: u32,
pub dummy: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_pipe_s__bindgen_ty_3__bindgen_ty_2__bindgen_ty_1"]
[::std::mem::size_of::<uv_pipe_s__bindgen_ty_3__bindgen_ty_2__bindgen_ty_1>() - 8usize];
["Alignment of uv_pipe_s__bindgen_ty_3__bindgen_ty_2__bindgen_ty_1"]
[::std::mem::align_of::<uv_pipe_s__bindgen_ty_3__bindgen_ty_2__bindgen_ty_1>() - 8usize];
["Offset of field: uv_pipe_s__bindgen_ty_3__bindgen_ty_2__bindgen_ty_1::payload_remaining"][::std::mem::offset_of!(
uv_pipe_s__bindgen_ty_3__bindgen_ty_2__bindgen_ty_1,
payload_remaining
)
- 0usize];
["Offset of field: uv_pipe_s__bindgen_ty_3__bindgen_ty_2__bindgen_ty_1::dummy"]
[::std::mem::offset_of!(uv_pipe_s__bindgen_ty_3__bindgen_ty_2__bindgen_ty_1, dummy) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_pipe_s__bindgen_ty_3__bindgen_ty_2"]
[::std::mem::size_of::<uv_pipe_s__bindgen_ty_3__bindgen_ty_2>() - 280usize];
["Alignment of uv_pipe_s__bindgen_ty_3__bindgen_ty_2"]
[::std::mem::align_of::<uv_pipe_s__bindgen_ty_3__bindgen_ty_2>() - 8usize];
["Offset of field: uv_pipe_s__bindgen_ty_3__bindgen_ty_2::eof_timer"]
[::std::mem::offset_of!(uv_pipe_s__bindgen_ty_3__bindgen_ty_2, eof_timer) - 0usize];
["Offset of field: uv_pipe_s__bindgen_ty_3__bindgen_ty_2::dummy"]
[::std::mem::offset_of!(uv_pipe_s__bindgen_ty_3__bindgen_ty_2, dummy) - 8usize];
["Offset of field: uv_pipe_s__bindgen_ty_3__bindgen_ty_2::ipc_remote_pid"]
[::std::mem::offset_of!(uv_pipe_s__bindgen_ty_3__bindgen_ty_2, ipc_remote_pid) - 184usize];
["Offset of field: uv_pipe_s__bindgen_ty_3__bindgen_ty_2::ipc_data_frame"]
[::std::mem::offset_of!(uv_pipe_s__bindgen_ty_3__bindgen_ty_2, ipc_data_frame) - 192usize];
["Offset of field: uv_pipe_s__bindgen_ty_3__bindgen_ty_2::ipc_xfer_queue"]
[::std::mem::offset_of!(uv_pipe_s__bindgen_ty_3__bindgen_ty_2, ipc_xfer_queue) - 200usize];
["Offset of field: uv_pipe_s__bindgen_ty_3__bindgen_ty_2::ipc_xfer_queue_length"][::std::mem::offset_of!(
uv_pipe_s__bindgen_ty_3__bindgen_ty_2,
ipc_xfer_queue_length
) - 216usize];
["Offset of field: uv_pipe_s__bindgen_ty_3__bindgen_ty_2::non_overlapped_writes_tail"][::std::mem::offset_of!(
uv_pipe_s__bindgen_ty_3__bindgen_ty_2,
non_overlapped_writes_tail
)
- 224usize];
["Offset of field: uv_pipe_s__bindgen_ty_3__bindgen_ty_2::readfile_thread_lock"][::std::mem::offset_of!(
uv_pipe_s__bindgen_ty_3__bindgen_ty_2,
readfile_thread_lock
) - 232usize];
["Offset of field: uv_pipe_s__bindgen_ty_3__bindgen_ty_2::readfile_thread_handle"][::std::mem::offset_of!(
uv_pipe_s__bindgen_ty_3__bindgen_ty_2,
readfile_thread_handle
) - 272usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_pipe_s__bindgen_ty_3"][::std::mem::size_of::<uv_pipe_s__bindgen_ty_3>() - 280usize];
["Alignment of uv_pipe_s__bindgen_ty_3"]
[::std::mem::align_of::<uv_pipe_s__bindgen_ty_3>() - 8usize];
["Offset of field: uv_pipe_s__bindgen_ty_3::serv"]
[::std::mem::offset_of!(uv_pipe_s__bindgen_ty_3, serv) - 0usize];
["Offset of field: uv_pipe_s__bindgen_ty_3::conn"]
[::std::mem::offset_of!(uv_pipe_s__bindgen_ty_3, conn) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_pipe_s"][::std::mem::size_of::<uv_pipe_s>() - 576usize];
["Alignment of uv_pipe_s"][::std::mem::align_of::<uv_pipe_s>() - 8usize];
["Offset of field: uv_pipe_s::data"][::std::mem::offset_of!(uv_pipe_s, data) - 0usize];
["Offset of field: uv_pipe_s::loop_"][::std::mem::offset_of!(uv_pipe_s, loop_) - 8usize];
["Offset of field: uv_pipe_s::type_"][::std::mem::offset_of!(uv_pipe_s, type_) - 16usize];
["Offset of field: uv_pipe_s::close_cb"][::std::mem::offset_of!(uv_pipe_s, close_cb) - 24usize];
["Offset of field: uv_pipe_s::handle_queue"]
[::std::mem::offset_of!(uv_pipe_s, handle_queue) - 32usize];
["Offset of field: uv_pipe_s::u"][::std::mem::offset_of!(uv_pipe_s, u) - 48usize];
["Offset of field: uv_pipe_s::endgame_next"]
[::std::mem::offset_of!(uv_pipe_s, endgame_next) - 80usize];
["Offset of field: uv_pipe_s::flags"][::std::mem::offset_of!(uv_pipe_s, flags) - 88usize];
["Offset of field: uv_pipe_s::write_queue_size"]
[::std::mem::offset_of!(uv_pipe_s, write_queue_size) - 96usize];
["Offset of field: uv_pipe_s::alloc_cb"][::std::mem::offset_of!(uv_pipe_s, alloc_cb) - 104usize];
["Offset of field: uv_pipe_s::read_cb"][::std::mem::offset_of!(uv_pipe_s, read_cb) - 112usize];
["Offset of field: uv_pipe_s::reqs_pending"]
[::std::mem::offset_of!(uv_pipe_s, reqs_pending) - 120usize];
["Offset of field: uv_pipe_s::activecnt"]
[::std::mem::offset_of!(uv_pipe_s, activecnt) - 124usize];
["Offset of field: uv_pipe_s::read_req"][::std::mem::offset_of!(uv_pipe_s, read_req) - 128usize];
["Offset of field: uv_pipe_s::stream"][::std::mem::offset_of!(uv_pipe_s, stream) - 256usize];
["Offset of field: uv_pipe_s::ipc"][::std::mem::offset_of!(uv_pipe_s, ipc) - 272usize];
["Offset of field: uv_pipe_s::handle"][::std::mem::offset_of!(uv_pipe_s, handle) - 280usize];
["Offset of field: uv_pipe_s::name"][::std::mem::offset_of!(uv_pipe_s, name) - 288usize];
["Offset of field: uv_pipe_s::pipe"][::std::mem::offset_of!(uv_pipe_s, pipe) - 296usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_poll_s {
pub data: *mut ::std::os::raw::c_void,
pub loop_: *mut uv_loop_t,
pub type_: uv_handle_type,
pub close_cb: uv_close_cb,
pub handle_queue: uv__queue,
pub u: uv_poll_s__bindgen_ty_1,
pub endgame_next: *mut uv_handle_t,
pub flags: ::std::os::raw::c_uint,
pub poll_cb: uv_poll_cb,
pub socket: SOCKET,
pub peer_socket: SOCKET,
pub afd_poll_info_1: AFD_POLL_INFO,
pub afd_poll_info_2: AFD_POLL_INFO,
pub poll_req_1: uv_req_t,
pub poll_req_2: uv_req_t,
pub submitted_events_1: ::std::os::raw::c_uchar,
pub submitted_events_2: ::std::os::raw::c_uchar,
pub mask_events_1: ::std::os::raw::c_uchar,
pub mask_events_2: ::std::os::raw::c_uchar,
pub events: ::std::os::raw::c_uchar,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_poll_s__bindgen_ty_1 {
pub fd: ::std::os::raw::c_int,
pub reserved: [*mut ::std::os::raw::c_void; 4usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_poll_s__bindgen_ty_1"][::std::mem::size_of::<uv_poll_s__bindgen_ty_1>() - 32usize];
["Alignment of uv_poll_s__bindgen_ty_1"]
[::std::mem::align_of::<uv_poll_s__bindgen_ty_1>() - 8usize];
["Offset of field: uv_poll_s__bindgen_ty_1::fd"]
[::std::mem::offset_of!(uv_poll_s__bindgen_ty_1, fd) - 0usize];
["Offset of field: uv_poll_s__bindgen_ty_1::reserved"]
[::std::mem::offset_of!(uv_poll_s__bindgen_ty_1, reserved) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_poll_s"][::std::mem::size_of::<uv_poll_s>() - 416usize];
["Alignment of uv_poll_s"][::std::mem::align_of::<uv_poll_s>() - 8usize];
["Offset of field: uv_poll_s::data"][::std::mem::offset_of!(uv_poll_s, data) - 0usize];
["Offset of field: uv_poll_s::loop_"][::std::mem::offset_of!(uv_poll_s, loop_) - 8usize];
["Offset of field: uv_poll_s::type_"][::std::mem::offset_of!(uv_poll_s, type_) - 16usize];
["Offset of field: uv_poll_s::close_cb"][::std::mem::offset_of!(uv_poll_s, close_cb) - 24usize];
["Offset of field: uv_poll_s::handle_queue"]
[::std::mem::offset_of!(uv_poll_s, handle_queue) - 32usize];
["Offset of field: uv_poll_s::u"][::std::mem::offset_of!(uv_poll_s, u) - 48usize];
["Offset of field: uv_poll_s::endgame_next"]
[::std::mem::offset_of!(uv_poll_s, endgame_next) - 80usize];
["Offset of field: uv_poll_s::flags"][::std::mem::offset_of!(uv_poll_s, flags) - 88usize];
["Offset of field: uv_poll_s::poll_cb"][::std::mem::offset_of!(uv_poll_s, poll_cb) - 96usize];
["Offset of field: uv_poll_s::socket"][::std::mem::offset_of!(uv_poll_s, socket) - 104usize];
["Offset of field: uv_poll_s::peer_socket"]
[::std::mem::offset_of!(uv_poll_s, peer_socket) - 112usize];
["Offset of field: uv_poll_s::afd_poll_info_1"]
[::std::mem::offset_of!(uv_poll_s, afd_poll_info_1) - 120usize];
["Offset of field: uv_poll_s::afd_poll_info_2"]
[::std::mem::offset_of!(uv_poll_s, afd_poll_info_2) - 152usize];
["Offset of field: uv_poll_s::poll_req_1"]
[::std::mem::offset_of!(uv_poll_s, poll_req_1) - 184usize];
["Offset of field: uv_poll_s::poll_req_2"]
[::std::mem::offset_of!(uv_poll_s, poll_req_2) - 296usize];
["Offset of field: uv_poll_s::submitted_events_1"]
[::std::mem::offset_of!(uv_poll_s, submitted_events_1) - 408usize];
["Offset of field: uv_poll_s::submitted_events_2"]
[::std::mem::offset_of!(uv_poll_s, submitted_events_2) - 409usize];
["Offset of field: uv_poll_s::mask_events_1"]
[::std::mem::offset_of!(uv_poll_s, mask_events_1) - 410usize];
["Offset of field: uv_poll_s::mask_events_2"]
[::std::mem::offset_of!(uv_poll_s, mask_events_2) - 411usize];
["Offset of field: uv_poll_s::events"][::std::mem::offset_of!(uv_poll_s, events) - 412usize];
};
impl uv_poll_event {
pub const UV_READABLE: uv_poll_event = uv_poll_event(1);
}
impl uv_poll_event {
pub const UV_WRITABLE: uv_poll_event = uv_poll_event(2);
}
impl uv_poll_event {
pub const UV_DISCONNECT: uv_poll_event = uv_poll_event(4);
}
impl uv_poll_event {
pub const UV_PRIORITIZED: uv_poll_event = uv_poll_event(8);
}
#[repr(transparent)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct uv_poll_event(pub ::std::os::raw::c_int);
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_prepare_s {
pub data: *mut ::std::os::raw::c_void,
pub loop_: *mut uv_loop_t,
pub type_: uv_handle_type,
pub close_cb: uv_close_cb,
pub handle_queue: uv__queue,
pub u: uv_prepare_s__bindgen_ty_1,
pub endgame_next: *mut uv_handle_t,
pub flags: ::std::os::raw::c_uint,
pub prepare_prev: *mut uv_prepare_t,
pub prepare_next: *mut uv_prepare_t,
pub prepare_cb: uv_prepare_cb,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_prepare_s__bindgen_ty_1 {
pub fd: ::std::os::raw::c_int,
pub reserved: [*mut ::std::os::raw::c_void; 4usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_prepare_s__bindgen_ty_1"]
[::std::mem::size_of::<uv_prepare_s__bindgen_ty_1>() - 32usize];
["Alignment of uv_prepare_s__bindgen_ty_1"]
[::std::mem::align_of::<uv_prepare_s__bindgen_ty_1>() - 8usize];
["Offset of field: uv_prepare_s__bindgen_ty_1::fd"]
[::std::mem::offset_of!(uv_prepare_s__bindgen_ty_1, fd) - 0usize];
["Offset of field: uv_prepare_s__bindgen_ty_1::reserved"]
[::std::mem::offset_of!(uv_prepare_s__bindgen_ty_1, reserved) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_prepare_s"][::std::mem::size_of::<uv_prepare_s>() - 120usize];
["Alignment of uv_prepare_s"][::std::mem::align_of::<uv_prepare_s>() - 8usize];
["Offset of field: uv_prepare_s::data"][::std::mem::offset_of!(uv_prepare_s, data) - 0usize];
["Offset of field: uv_prepare_s::loop_"][::std::mem::offset_of!(uv_prepare_s, loop_) - 8usize];
["Offset of field: uv_prepare_s::type_"][::std::mem::offset_of!(uv_prepare_s, type_) - 16usize];
["Offset of field: uv_prepare_s::close_cb"]
[::std::mem::offset_of!(uv_prepare_s, close_cb) - 24usize];
["Offset of field: uv_prepare_s::handle_queue"]
[::std::mem::offset_of!(uv_prepare_s, handle_queue) - 32usize];
["Offset of field: uv_prepare_s::u"][::std::mem::offset_of!(uv_prepare_s, u) - 48usize];
["Offset of field: uv_prepare_s::endgame_next"]
[::std::mem::offset_of!(uv_prepare_s, endgame_next) - 80usize];
["Offset of field: uv_prepare_s::flags"][::std::mem::offset_of!(uv_prepare_s, flags) - 88usize];
["Offset of field: uv_prepare_s::prepare_prev"]
[::std::mem::offset_of!(uv_prepare_s, prepare_prev) - 96usize];
["Offset of field: uv_prepare_s::prepare_next"]
[::std::mem::offset_of!(uv_prepare_s, prepare_next) - 104usize];
["Offset of field: uv_prepare_s::prepare_cb"]
[::std::mem::offset_of!(uv_prepare_s, prepare_cb) - 112usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_check_s {
pub data: *mut ::std::os::raw::c_void,
pub loop_: *mut uv_loop_t,
pub type_: uv_handle_type,
pub close_cb: uv_close_cb,
pub handle_queue: uv__queue,
pub u: uv_check_s__bindgen_ty_1,
pub endgame_next: *mut uv_handle_t,
pub flags: ::std::os::raw::c_uint,
pub check_prev: *mut uv_check_t,
pub check_next: *mut uv_check_t,
pub check_cb: uv_check_cb,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_check_s__bindgen_ty_1 {
pub fd: ::std::os::raw::c_int,
pub reserved: [*mut ::std::os::raw::c_void; 4usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_check_s__bindgen_ty_1"][::std::mem::size_of::<uv_check_s__bindgen_ty_1>() - 32usize];
["Alignment of uv_check_s__bindgen_ty_1"]
[::std::mem::align_of::<uv_check_s__bindgen_ty_1>() - 8usize];
["Offset of field: uv_check_s__bindgen_ty_1::fd"]
[::std::mem::offset_of!(uv_check_s__bindgen_ty_1, fd) - 0usize];
["Offset of field: uv_check_s__bindgen_ty_1::reserved"]
[::std::mem::offset_of!(uv_check_s__bindgen_ty_1, reserved) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_check_s"][::std::mem::size_of::<uv_check_s>() - 120usize];
["Alignment of uv_check_s"][::std::mem::align_of::<uv_check_s>() - 8usize];
["Offset of field: uv_check_s::data"][::std::mem::offset_of!(uv_check_s, data) - 0usize];
["Offset of field: uv_check_s::loop_"][::std::mem::offset_of!(uv_check_s, loop_) - 8usize];
["Offset of field: uv_check_s::type_"][::std::mem::offset_of!(uv_check_s, type_) - 16usize];
["Offset of field: uv_check_s::close_cb"][::std::mem::offset_of!(uv_check_s, close_cb) - 24usize];
["Offset of field: uv_check_s::handle_queue"]
[::std::mem::offset_of!(uv_check_s, handle_queue) - 32usize];
["Offset of field: uv_check_s::u"][::std::mem::offset_of!(uv_check_s, u) - 48usize];
["Offset of field: uv_check_s::endgame_next"]
[::std::mem::offset_of!(uv_check_s, endgame_next) - 80usize];
["Offset of field: uv_check_s::flags"][::std::mem::offset_of!(uv_check_s, flags) - 88usize];
["Offset of field: uv_check_s::check_prev"]
[::std::mem::offset_of!(uv_check_s, check_prev) - 96usize];
["Offset of field: uv_check_s::check_next"]
[::std::mem::offset_of!(uv_check_s, check_next) - 104usize];
["Offset of field: uv_check_s::check_cb"]
[::std::mem::offset_of!(uv_check_s, check_cb) - 112usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_idle_s {
pub data: *mut ::std::os::raw::c_void,
pub loop_: *mut uv_loop_t,
pub type_: uv_handle_type,
pub close_cb: uv_close_cb,
pub handle_queue: uv__queue,
pub u: uv_idle_s__bindgen_ty_1,
pub endgame_next: *mut uv_handle_t,
pub flags: ::std::os::raw::c_uint,
pub idle_prev: *mut uv_idle_t,
pub idle_next: *mut uv_idle_t,
pub idle_cb: uv_idle_cb,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_idle_s__bindgen_ty_1 {
pub fd: ::std::os::raw::c_int,
pub reserved: [*mut ::std::os::raw::c_void; 4usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_idle_s__bindgen_ty_1"][::std::mem::size_of::<uv_idle_s__bindgen_ty_1>() - 32usize];
["Alignment of uv_idle_s__bindgen_ty_1"]
[::std::mem::align_of::<uv_idle_s__bindgen_ty_1>() - 8usize];
["Offset of field: uv_idle_s__bindgen_ty_1::fd"]
[::std::mem::offset_of!(uv_idle_s__bindgen_ty_1, fd) - 0usize];
["Offset of field: uv_idle_s__bindgen_ty_1::reserved"]
[::std::mem::offset_of!(uv_idle_s__bindgen_ty_1, reserved) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_idle_s"][::std::mem::size_of::<uv_idle_s>() - 120usize];
["Alignment of uv_idle_s"][::std::mem::align_of::<uv_idle_s>() - 8usize];
["Offset of field: uv_idle_s::data"][::std::mem::offset_of!(uv_idle_s, data) - 0usize];
["Offset of field: uv_idle_s::loop_"][::std::mem::offset_of!(uv_idle_s, loop_) - 8usize];
["Offset of field: uv_idle_s::type_"][::std::mem::offset_of!(uv_idle_s, type_) - 16usize];
["Offset of field: uv_idle_s::close_cb"][::std::mem::offset_of!(uv_idle_s, close_cb) - 24usize];
["Offset of field: uv_idle_s::handle_queue"]
[::std::mem::offset_of!(uv_idle_s, handle_queue) - 32usize];
["Offset of field: uv_idle_s::u"][::std::mem::offset_of!(uv_idle_s, u) - 48usize];
["Offset of field: uv_idle_s::endgame_next"]
[::std::mem::offset_of!(uv_idle_s, endgame_next) - 80usize];
["Offset of field: uv_idle_s::flags"][::std::mem::offset_of!(uv_idle_s, flags) - 88usize];
["Offset of field: uv_idle_s::idle_prev"][::std::mem::offset_of!(uv_idle_s, idle_prev) - 96usize];
["Offset of field: uv_idle_s::idle_next"]
[::std::mem::offset_of!(uv_idle_s, idle_next) - 104usize];
["Offset of field: uv_idle_s::idle_cb"][::std::mem::offset_of!(uv_idle_s, idle_cb) - 112usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_async_s {
pub data: *mut ::std::os::raw::c_void,
pub loop_: *mut uv_loop_t,
pub type_: uv_handle_type,
pub close_cb: uv_close_cb,
pub handle_queue: uv__queue,
pub u: uv_async_s__bindgen_ty_1,
pub endgame_next: *mut uv_handle_t,
pub flags: ::std::os::raw::c_uint,
pub async_req: uv_req_s,
pub async_cb: uv_async_cb,
pub async_sent: ::std::os::raw::c_char,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_async_s__bindgen_ty_1 {
pub fd: ::std::os::raw::c_int,
pub reserved: [*mut ::std::os::raw::c_void; 4usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_async_s__bindgen_ty_1"][::std::mem::size_of::<uv_async_s__bindgen_ty_1>() - 32usize];
["Alignment of uv_async_s__bindgen_ty_1"]
[::std::mem::align_of::<uv_async_s__bindgen_ty_1>() - 8usize];
["Offset of field: uv_async_s__bindgen_ty_1::fd"]
[::std::mem::offset_of!(uv_async_s__bindgen_ty_1, fd) - 0usize];
["Offset of field: uv_async_s__bindgen_ty_1::reserved"]
[::std::mem::offset_of!(uv_async_s__bindgen_ty_1, reserved) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_async_s"][::std::mem::size_of::<uv_async_s>() - 224usize];
["Alignment of uv_async_s"][::std::mem::align_of::<uv_async_s>() - 8usize];
["Offset of field: uv_async_s::data"][::std::mem::offset_of!(uv_async_s, data) - 0usize];
["Offset of field: uv_async_s::loop_"][::std::mem::offset_of!(uv_async_s, loop_) - 8usize];
["Offset of field: uv_async_s::type_"][::std::mem::offset_of!(uv_async_s, type_) - 16usize];
["Offset of field: uv_async_s::close_cb"][::std::mem::offset_of!(uv_async_s, close_cb) - 24usize];
["Offset of field: uv_async_s::handle_queue"]
[::std::mem::offset_of!(uv_async_s, handle_queue) - 32usize];
["Offset of field: uv_async_s::u"][::std::mem::offset_of!(uv_async_s, u) - 48usize];
["Offset of field: uv_async_s::endgame_next"]
[::std::mem::offset_of!(uv_async_s, endgame_next) - 80usize];
["Offset of field: uv_async_s::flags"][::std::mem::offset_of!(uv_async_s, flags) - 88usize];
["Offset of field: uv_async_s::async_req"]
[::std::mem::offset_of!(uv_async_s, async_req) - 96usize];
["Offset of field: uv_async_s::async_cb"]
[::std::mem::offset_of!(uv_async_s, async_cb) - 208usize];
["Offset of field: uv_async_s::async_sent"]
[::std::mem::offset_of!(uv_async_s, async_sent) - 216usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_timer_s {
pub data: *mut ::std::os::raw::c_void,
pub loop_: *mut uv_loop_t,
pub type_: uv_handle_type,
pub close_cb: uv_close_cb,
pub handle_queue: uv__queue,
pub u: uv_timer_s__bindgen_ty_1,
pub endgame_next: *mut uv_handle_t,
pub flags: ::std::os::raw::c_uint,
pub node: uv_timer_s__bindgen_ty_2,
pub unused: ::std::os::raw::c_int,
pub timeout: u64,
pub repeat: u64,
pub start_id: u64,
pub timer_cb: uv_timer_cb,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_timer_s__bindgen_ty_1 {
pub fd: ::std::os::raw::c_int,
pub reserved: [*mut ::std::os::raw::c_void; 4usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_timer_s__bindgen_ty_1"][::std::mem::size_of::<uv_timer_s__bindgen_ty_1>() - 32usize];
["Alignment of uv_timer_s__bindgen_ty_1"]
[::std::mem::align_of::<uv_timer_s__bindgen_ty_1>() - 8usize];
["Offset of field: uv_timer_s__bindgen_ty_1::fd"]
[::std::mem::offset_of!(uv_timer_s__bindgen_ty_1, fd) - 0usize];
["Offset of field: uv_timer_s__bindgen_ty_1::reserved"]
[::std::mem::offset_of!(uv_timer_s__bindgen_ty_1, reserved) - 0usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_timer_s__bindgen_ty_2 {
pub heap: [*mut ::std::os::raw::c_void; 3usize],
pub queue: uv__queue,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_timer_s__bindgen_ty_2"][::std::mem::size_of::<uv_timer_s__bindgen_ty_2>() - 24usize];
["Alignment of uv_timer_s__bindgen_ty_2"]
[::std::mem::align_of::<uv_timer_s__bindgen_ty_2>() - 8usize];
["Offset of field: uv_timer_s__bindgen_ty_2::heap"]
[::std::mem::offset_of!(uv_timer_s__bindgen_ty_2, heap) - 0usize];
["Offset of field: uv_timer_s__bindgen_ty_2::queue"]
[::std::mem::offset_of!(uv_timer_s__bindgen_ty_2, queue) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_timer_s"][::std::mem::size_of::<uv_timer_s>() - 160usize];
["Alignment of uv_timer_s"][::std::mem::align_of::<uv_timer_s>() - 8usize];
["Offset of field: uv_timer_s::data"][::std::mem::offset_of!(uv_timer_s, data) - 0usize];
["Offset of field: uv_timer_s::loop_"][::std::mem::offset_of!(uv_timer_s, loop_) - 8usize];
["Offset of field: uv_timer_s::type_"][::std::mem::offset_of!(uv_timer_s, type_) - 16usize];
["Offset of field: uv_timer_s::close_cb"][::std::mem::offset_of!(uv_timer_s, close_cb) - 24usize];
["Offset of field: uv_timer_s::handle_queue"]
[::std::mem::offset_of!(uv_timer_s, handle_queue) - 32usize];
["Offset of field: uv_timer_s::u"][::std::mem::offset_of!(uv_timer_s, u) - 48usize];
["Offset of field: uv_timer_s::endgame_next"]
[::std::mem::offset_of!(uv_timer_s, endgame_next) - 80usize];
["Offset of field: uv_timer_s::flags"][::std::mem::offset_of!(uv_timer_s, flags) - 88usize];
["Offset of field: uv_timer_s::node"][::std::mem::offset_of!(uv_timer_s, node) - 96usize];
["Offset of field: uv_timer_s::unused"][::std::mem::offset_of!(uv_timer_s, unused) - 120usize];
["Offset of field: uv_timer_s::timeout"][::std::mem::offset_of!(uv_timer_s, timeout) - 128usize];
["Offset of field: uv_timer_s::repeat"][::std::mem::offset_of!(uv_timer_s, repeat) - 136usize];
["Offset of field: uv_timer_s::start_id"]
[::std::mem::offset_of!(uv_timer_s, start_id) - 144usize];
["Offset of field: uv_timer_s::timer_cb"]
[::std::mem::offset_of!(uv_timer_s, timer_cb) - 152usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_getaddrinfo_s {
pub data: *mut ::std::os::raw::c_void,
pub type_: uv_req_type,
pub reserved: [*mut ::std::os::raw::c_void; 6usize],
pub u: uv_getaddrinfo_s__bindgen_ty_1,
pub next_req: *mut uv_req_s,
pub loop_: *mut uv_loop_t,
pub work_req: uv__work,
pub getaddrinfo_cb: uv_getaddrinfo_cb,
pub alloc: *mut ::std::os::raw::c_void,
pub node: *mut WCHAR,
pub service: *mut WCHAR,
pub addrinfow: *mut addrinfoW,
pub addrinfo: *mut addrinfo,
pub retcode: ::std::os::raw::c_int,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_getaddrinfo_s__bindgen_ty_1 {
pub io: uv_getaddrinfo_s__bindgen_ty_1__bindgen_ty_1,
pub connect: uv_getaddrinfo_s__bindgen_ty_1__bindgen_ty_2,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_getaddrinfo_s__bindgen_ty_1__bindgen_ty_1 {
pub overlapped: OVERLAPPED,
pub queued_bytes: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_getaddrinfo_s__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::size_of::<uv_getaddrinfo_s__bindgen_ty_1__bindgen_ty_1>() - 40usize];
["Alignment of uv_getaddrinfo_s__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::align_of::<uv_getaddrinfo_s__bindgen_ty_1__bindgen_ty_1>() - 8usize];
["Offset of field: uv_getaddrinfo_s__bindgen_ty_1__bindgen_ty_1::overlapped"]
[::std::mem::offset_of!(uv_getaddrinfo_s__bindgen_ty_1__bindgen_ty_1, overlapped) - 0usize];
["Offset of field: uv_getaddrinfo_s__bindgen_ty_1__bindgen_ty_1::queued_bytes"]
[::std::mem::offset_of!(uv_getaddrinfo_s__bindgen_ty_1__bindgen_ty_1, queued_bytes) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_getaddrinfo_s__bindgen_ty_1__bindgen_ty_2 {
pub result: ULONG_PTR,
pub pipeHandle: HANDLE,
pub duplex_flags: DWORD,
pub name: *mut WCHAR,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_getaddrinfo_s__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::size_of::<uv_getaddrinfo_s__bindgen_ty_1__bindgen_ty_2>() - 32usize];
["Alignment of uv_getaddrinfo_s__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::align_of::<uv_getaddrinfo_s__bindgen_ty_1__bindgen_ty_2>() - 8usize];
["Offset of field: uv_getaddrinfo_s__bindgen_ty_1__bindgen_ty_2::result"]
[::std::mem::offset_of!(uv_getaddrinfo_s__bindgen_ty_1__bindgen_ty_2, result) - 0usize];
["Offset of field: uv_getaddrinfo_s__bindgen_ty_1__bindgen_ty_2::pipeHandle"]
[::std::mem::offset_of!(uv_getaddrinfo_s__bindgen_ty_1__bindgen_ty_2, pipeHandle) - 8usize];
["Offset of field: uv_getaddrinfo_s__bindgen_ty_1__bindgen_ty_2::duplex_flags"]
[::std::mem::offset_of!(uv_getaddrinfo_s__bindgen_ty_1__bindgen_ty_2, duplex_flags) - 16usize];
["Offset of field: uv_getaddrinfo_s__bindgen_ty_1__bindgen_ty_2::name"]
[::std::mem::offset_of!(uv_getaddrinfo_s__bindgen_ty_1__bindgen_ty_2, name) - 24usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_getaddrinfo_s__bindgen_ty_1"]
[::std::mem::size_of::<uv_getaddrinfo_s__bindgen_ty_1>() - 40usize];
["Alignment of uv_getaddrinfo_s__bindgen_ty_1"]
[::std::mem::align_of::<uv_getaddrinfo_s__bindgen_ty_1>() - 8usize];
["Offset of field: uv_getaddrinfo_s__bindgen_ty_1::io"]
[::std::mem::offset_of!(uv_getaddrinfo_s__bindgen_ty_1, io) - 0usize];
["Offset of field: uv_getaddrinfo_s__bindgen_ty_1::connect"]
[::std::mem::offset_of!(uv_getaddrinfo_s__bindgen_ty_1, connect) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_getaddrinfo_s"][::std::mem::size_of::<uv_getaddrinfo_s>() - 216usize];
["Alignment of uv_getaddrinfo_s"][::std::mem::align_of::<uv_getaddrinfo_s>() - 8usize];
["Offset of field: uv_getaddrinfo_s::data"]
[::std::mem::offset_of!(uv_getaddrinfo_s, data) - 0usize];
["Offset of field: uv_getaddrinfo_s::type_"]
[::std::mem::offset_of!(uv_getaddrinfo_s, type_) - 8usize];
["Offset of field: uv_getaddrinfo_s::reserved"]
[::std::mem::offset_of!(uv_getaddrinfo_s, reserved) - 16usize];
["Offset of field: uv_getaddrinfo_s::u"][::std::mem::offset_of!(uv_getaddrinfo_s, u) - 64usize];
["Offset of field: uv_getaddrinfo_s::next_req"]
[::std::mem::offset_of!(uv_getaddrinfo_s, next_req) - 104usize];
["Offset of field: uv_getaddrinfo_s::loop_"]
[::std::mem::offset_of!(uv_getaddrinfo_s, loop_) - 112usize];
["Offset of field: uv_getaddrinfo_s::work_req"]
[::std::mem::offset_of!(uv_getaddrinfo_s, work_req) - 120usize];
["Offset of field: uv_getaddrinfo_s::getaddrinfo_cb"]
[::std::mem::offset_of!(uv_getaddrinfo_s, getaddrinfo_cb) - 160usize];
["Offset of field: uv_getaddrinfo_s::alloc"]
[::std::mem::offset_of!(uv_getaddrinfo_s, alloc) - 168usize];
["Offset of field: uv_getaddrinfo_s::node"]
[::std::mem::offset_of!(uv_getaddrinfo_s, node) - 176usize];
["Offset of field: uv_getaddrinfo_s::service"]
[::std::mem::offset_of!(uv_getaddrinfo_s, service) - 184usize];
["Offset of field: uv_getaddrinfo_s::addrinfow"]
[::std::mem::offset_of!(uv_getaddrinfo_s, addrinfow) - 192usize];
["Offset of field: uv_getaddrinfo_s::addrinfo"]
[::std::mem::offset_of!(uv_getaddrinfo_s, addrinfo) - 200usize];
["Offset of field: uv_getaddrinfo_s::retcode"]
[::std::mem::offset_of!(uv_getaddrinfo_s, retcode) - 208usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_getnameinfo_s {
pub data: *mut ::std::os::raw::c_void,
pub type_: uv_req_type,
pub reserved: [*mut ::std::os::raw::c_void; 6usize],
pub u: uv_getnameinfo_s__bindgen_ty_1,
pub next_req: *mut uv_req_s,
pub loop_: *mut uv_loop_t,
pub work_req: uv__work,
pub getnameinfo_cb: uv_getnameinfo_cb,
pub storage: sockaddr_storage,
pub flags: ::std::os::raw::c_int,
pub host: [::std::os::raw::c_char; 1025usize],
pub service: [::std::os::raw::c_char; 32usize],
pub retcode: ::std::os::raw::c_int,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_getnameinfo_s__bindgen_ty_1 {
pub io: uv_getnameinfo_s__bindgen_ty_1__bindgen_ty_1,
pub connect: uv_getnameinfo_s__bindgen_ty_1__bindgen_ty_2,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_getnameinfo_s__bindgen_ty_1__bindgen_ty_1 {
pub overlapped: OVERLAPPED,
pub queued_bytes: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_getnameinfo_s__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::size_of::<uv_getnameinfo_s__bindgen_ty_1__bindgen_ty_1>() - 40usize];
["Alignment of uv_getnameinfo_s__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::align_of::<uv_getnameinfo_s__bindgen_ty_1__bindgen_ty_1>() - 8usize];
["Offset of field: uv_getnameinfo_s__bindgen_ty_1__bindgen_ty_1::overlapped"]
[::std::mem::offset_of!(uv_getnameinfo_s__bindgen_ty_1__bindgen_ty_1, overlapped) - 0usize];
["Offset of field: uv_getnameinfo_s__bindgen_ty_1__bindgen_ty_1::queued_bytes"]
[::std::mem::offset_of!(uv_getnameinfo_s__bindgen_ty_1__bindgen_ty_1, queued_bytes) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_getnameinfo_s__bindgen_ty_1__bindgen_ty_2 {
pub result: ULONG_PTR,
pub pipeHandle: HANDLE,
pub duplex_flags: DWORD,
pub name: *mut WCHAR,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_getnameinfo_s__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::size_of::<uv_getnameinfo_s__bindgen_ty_1__bindgen_ty_2>() - 32usize];
["Alignment of uv_getnameinfo_s__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::align_of::<uv_getnameinfo_s__bindgen_ty_1__bindgen_ty_2>() - 8usize];
["Offset of field: uv_getnameinfo_s__bindgen_ty_1__bindgen_ty_2::result"]
[::std::mem::offset_of!(uv_getnameinfo_s__bindgen_ty_1__bindgen_ty_2, result) - 0usize];
["Offset of field: uv_getnameinfo_s__bindgen_ty_1__bindgen_ty_2::pipeHandle"]
[::std::mem::offset_of!(uv_getnameinfo_s__bindgen_ty_1__bindgen_ty_2, pipeHandle) - 8usize];
["Offset of field: uv_getnameinfo_s__bindgen_ty_1__bindgen_ty_2::duplex_flags"]
[::std::mem::offset_of!(uv_getnameinfo_s__bindgen_ty_1__bindgen_ty_2, duplex_flags) - 16usize];
["Offset of field: uv_getnameinfo_s__bindgen_ty_1__bindgen_ty_2::name"]
[::std::mem::offset_of!(uv_getnameinfo_s__bindgen_ty_1__bindgen_ty_2, name) - 24usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_getnameinfo_s__bindgen_ty_1"]
[::std::mem::size_of::<uv_getnameinfo_s__bindgen_ty_1>() - 40usize];
["Alignment of uv_getnameinfo_s__bindgen_ty_1"]
[::std::mem::align_of::<uv_getnameinfo_s__bindgen_ty_1>() - 8usize];
["Offset of field: uv_getnameinfo_s__bindgen_ty_1::io"]
[::std::mem::offset_of!(uv_getnameinfo_s__bindgen_ty_1, io) - 0usize];
["Offset of field: uv_getnameinfo_s__bindgen_ty_1::connect"]
[::std::mem::offset_of!(uv_getnameinfo_s__bindgen_ty_1, connect) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_getnameinfo_s"][::std::mem::size_of::<uv_getnameinfo_s>() - 1368usize];
["Alignment of uv_getnameinfo_s"][::std::mem::align_of::<uv_getnameinfo_s>() - 8usize];
["Offset of field: uv_getnameinfo_s::data"]
[::std::mem::offset_of!(uv_getnameinfo_s, data) - 0usize];
["Offset of field: uv_getnameinfo_s::type_"]
[::std::mem::offset_of!(uv_getnameinfo_s, type_) - 8usize];
["Offset of field: uv_getnameinfo_s::reserved"]
[::std::mem::offset_of!(uv_getnameinfo_s, reserved) - 16usize];
["Offset of field: uv_getnameinfo_s::u"][::std::mem::offset_of!(uv_getnameinfo_s, u) - 64usize];
["Offset of field: uv_getnameinfo_s::next_req"]
[::std::mem::offset_of!(uv_getnameinfo_s, next_req) - 104usize];
["Offset of field: uv_getnameinfo_s::loop_"]
[::std::mem::offset_of!(uv_getnameinfo_s, loop_) - 112usize];
["Offset of field: uv_getnameinfo_s::work_req"]
[::std::mem::offset_of!(uv_getnameinfo_s, work_req) - 120usize];
["Offset of field: uv_getnameinfo_s::getnameinfo_cb"]
[::std::mem::offset_of!(uv_getnameinfo_s, getnameinfo_cb) - 160usize];
["Offset of field: uv_getnameinfo_s::storage"]
[::std::mem::offset_of!(uv_getnameinfo_s, storage) - 168usize];
["Offset of field: uv_getnameinfo_s::flags"]
[::std::mem::offset_of!(uv_getnameinfo_s, flags) - 296usize];
["Offset of field: uv_getnameinfo_s::host"]
[::std::mem::offset_of!(uv_getnameinfo_s, host) - 300usize];
["Offset of field: uv_getnameinfo_s::service"]
[::std::mem::offset_of!(uv_getnameinfo_s, service) - 1325usize];
["Offset of field: uv_getnameinfo_s::retcode"]
[::std::mem::offset_of!(uv_getnameinfo_s, retcode) - 1360usize];
};
impl uv_stdio_flags {
pub const UV_IGNORE: uv_stdio_flags = uv_stdio_flags(0);
}
impl uv_stdio_flags {
pub const UV_CREATE_PIPE: uv_stdio_flags = uv_stdio_flags(1);
}
impl uv_stdio_flags {
pub const UV_INHERIT_FD: uv_stdio_flags = uv_stdio_flags(2);
}
impl uv_stdio_flags {
pub const UV_INHERIT_STREAM: uv_stdio_flags = uv_stdio_flags(4);
}
impl uv_stdio_flags {
pub const UV_READABLE_PIPE: uv_stdio_flags = uv_stdio_flags(16);
}
impl uv_stdio_flags {
pub const UV_WRITABLE_PIPE: uv_stdio_flags = uv_stdio_flags(32);
}
impl uv_stdio_flags {
pub const UV_NONBLOCK_PIPE: uv_stdio_flags = uv_stdio_flags(64);
}
impl uv_stdio_flags {
pub const UV_OVERLAPPED_PIPE: uv_stdio_flags = uv_stdio_flags(64);
}
#[repr(transparent)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct uv_stdio_flags(pub ::std::os::raw::c_int);
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_stdio_container_s {
pub flags: uv_stdio_flags,
pub data: uv_stdio_container_s__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_stdio_container_s__bindgen_ty_1 {
pub stream: *mut uv_stream_t,
pub fd: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_stdio_container_s__bindgen_ty_1"]
[::std::mem::size_of::<uv_stdio_container_s__bindgen_ty_1>() - 8usize];
["Alignment of uv_stdio_container_s__bindgen_ty_1"]
[::std::mem::align_of::<uv_stdio_container_s__bindgen_ty_1>() - 8usize];
["Offset of field: uv_stdio_container_s__bindgen_ty_1::stream"]
[::std::mem::offset_of!(uv_stdio_container_s__bindgen_ty_1, stream) - 0usize];
["Offset of field: uv_stdio_container_s__bindgen_ty_1::fd"]
[::std::mem::offset_of!(uv_stdio_container_s__bindgen_ty_1, fd) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_stdio_container_s"][::std::mem::size_of::<uv_stdio_container_s>() - 16usize];
["Alignment of uv_stdio_container_s"][::std::mem::align_of::<uv_stdio_container_s>() - 8usize];
["Offset of field: uv_stdio_container_s::flags"]
[::std::mem::offset_of!(uv_stdio_container_s, flags) - 0usize];
["Offset of field: uv_stdio_container_s::data"]
[::std::mem::offset_of!(uv_stdio_container_s, data) - 8usize];
};
pub type uv_stdio_container_t = uv_stdio_container_s;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_process_options_s {
pub exit_cb: uv_exit_cb,
pub file: *const ::std::os::raw::c_char,
pub args: *mut *mut ::std::os::raw::c_char,
pub env: *mut *mut ::std::os::raw::c_char,
pub cwd: *const ::std::os::raw::c_char,
pub flags: ::std::os::raw::c_uint,
pub stdio_count: ::std::os::raw::c_int,
pub stdio: *mut uv_stdio_container_t,
pub uid: uv_uid_t,
pub gid: uv_gid_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_process_options_s"][::std::mem::size_of::<uv_process_options_s>() - 64usize];
["Alignment of uv_process_options_s"][::std::mem::align_of::<uv_process_options_s>() - 8usize];
["Offset of field: uv_process_options_s::exit_cb"]
[::std::mem::offset_of!(uv_process_options_s, exit_cb) - 0usize];
["Offset of field: uv_process_options_s::file"]
[::std::mem::offset_of!(uv_process_options_s, file) - 8usize];
["Offset of field: uv_process_options_s::args"]
[::std::mem::offset_of!(uv_process_options_s, args) - 16usize];
["Offset of field: uv_process_options_s::env"]
[::std::mem::offset_of!(uv_process_options_s, env) - 24usize];
["Offset of field: uv_process_options_s::cwd"]
[::std::mem::offset_of!(uv_process_options_s, cwd) - 32usize];
["Offset of field: uv_process_options_s::flags"]
[::std::mem::offset_of!(uv_process_options_s, flags) - 40usize];
["Offset of field: uv_process_options_s::stdio_count"]
[::std::mem::offset_of!(uv_process_options_s, stdio_count) - 44usize];
["Offset of field: uv_process_options_s::stdio"]
[::std::mem::offset_of!(uv_process_options_s, stdio) - 48usize];
["Offset of field: uv_process_options_s::uid"]
[::std::mem::offset_of!(uv_process_options_s, uid) - 56usize];
["Offset of field: uv_process_options_s::gid"]
[::std::mem::offset_of!(uv_process_options_s, gid) - 57usize];
};
pub type uv_process_options_t = uv_process_options_s;
impl uv_process_flags {
pub const UV_PROCESS_SETUID: uv_process_flags = uv_process_flags(1);
}
impl uv_process_flags {
pub const UV_PROCESS_SETGID: uv_process_flags = uv_process_flags(2);
}
impl uv_process_flags {
pub const UV_PROCESS_WINDOWS_VERBATIM_ARGUMENTS: uv_process_flags = uv_process_flags(4);
}
impl uv_process_flags {
pub const UV_PROCESS_DETACHED: uv_process_flags = uv_process_flags(8);
}
impl uv_process_flags {
pub const UV_PROCESS_WINDOWS_HIDE: uv_process_flags = uv_process_flags(16);
}
impl uv_process_flags {
pub const UV_PROCESS_WINDOWS_HIDE_CONSOLE: uv_process_flags = uv_process_flags(32);
}
impl uv_process_flags {
pub const UV_PROCESS_WINDOWS_HIDE_GUI: uv_process_flags = uv_process_flags(64);
}
impl uv_process_flags {
pub const UV_PROCESS_WINDOWS_FILE_PATH_EXACT_NAME: uv_process_flags = uv_process_flags(128);
}
#[repr(transparent)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct uv_process_flags(pub ::std::os::raw::c_int);
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_process_s {
pub data: *mut ::std::os::raw::c_void,
pub loop_: *mut uv_loop_t,
pub type_: uv_handle_type,
pub close_cb: uv_close_cb,
pub handle_queue: uv__queue,
pub u: uv_process_s__bindgen_ty_1,
pub endgame_next: *mut uv_handle_t,
pub flags: ::std::os::raw::c_uint,
pub exit_cb: uv_exit_cb,
pub pid: ::std::os::raw::c_int,
pub exit_req: uv_process_s_uv_process_exit_s,
pub unused: *mut ::std::os::raw::c_void,
pub exit_signal: ::std::os::raw::c_int,
pub wait_handle: HANDLE,
pub process_handle: HANDLE,
pub exit_cb_pending: ::std::os::raw::c_char,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_process_s__bindgen_ty_1 {
pub fd: ::std::os::raw::c_int,
pub reserved: [*mut ::std::os::raw::c_void; 4usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_process_s__bindgen_ty_1"]
[::std::mem::size_of::<uv_process_s__bindgen_ty_1>() - 32usize];
["Alignment of uv_process_s__bindgen_ty_1"]
[::std::mem::align_of::<uv_process_s__bindgen_ty_1>() - 8usize];
["Offset of field: uv_process_s__bindgen_ty_1::fd"]
[::std::mem::offset_of!(uv_process_s__bindgen_ty_1, fd) - 0usize];
["Offset of field: uv_process_s__bindgen_ty_1::reserved"]
[::std::mem::offset_of!(uv_process_s__bindgen_ty_1, reserved) - 0usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_process_s_uv_process_exit_s {
pub data: *mut ::std::os::raw::c_void,
pub type_: uv_req_type,
pub reserved: [*mut ::std::os::raw::c_void; 6usize],
pub u: uv_process_s_uv_process_exit_s__bindgen_ty_1,
pub next_req: *mut uv_req_s,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_process_s_uv_process_exit_s__bindgen_ty_1 {
pub io: uv_process_s_uv_process_exit_s__bindgen_ty_1__bindgen_ty_1,
pub connect: uv_process_s_uv_process_exit_s__bindgen_ty_1__bindgen_ty_2,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_process_s_uv_process_exit_s__bindgen_ty_1__bindgen_ty_1 {
pub overlapped: OVERLAPPED,
pub queued_bytes: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_process_s_uv_process_exit_s__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::size_of::<uv_process_s_uv_process_exit_s__bindgen_ty_1__bindgen_ty_1>() - 40usize];
["Alignment of uv_process_s_uv_process_exit_s__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::align_of::<uv_process_s_uv_process_exit_s__bindgen_ty_1__bindgen_ty_1>() - 8usize];
["Offset of field: uv_process_s_uv_process_exit_s__bindgen_ty_1__bindgen_ty_1::overlapped"][::std::mem::offset_of!(
uv_process_s_uv_process_exit_s__bindgen_ty_1__bindgen_ty_1,
overlapped
)
- 0usize];
["Offset of field: uv_process_s_uv_process_exit_s__bindgen_ty_1__bindgen_ty_1::queued_bytes"][::std::mem::offset_of!(
uv_process_s_uv_process_exit_s__bindgen_ty_1__bindgen_ty_1,
queued_bytes
)
- 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_process_s_uv_process_exit_s__bindgen_ty_1__bindgen_ty_2 {
pub result: ULONG_PTR,
pub pipeHandle: HANDLE,
pub duplex_flags: DWORD,
pub name: *mut WCHAR,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_process_s_uv_process_exit_s__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::size_of::<uv_process_s_uv_process_exit_s__bindgen_ty_1__bindgen_ty_2>() - 32usize];
["Alignment of uv_process_s_uv_process_exit_s__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::align_of::<uv_process_s_uv_process_exit_s__bindgen_ty_1__bindgen_ty_2>() - 8usize];
["Offset of field: uv_process_s_uv_process_exit_s__bindgen_ty_1__bindgen_ty_2::result"][::std::mem::offset_of!(
uv_process_s_uv_process_exit_s__bindgen_ty_1__bindgen_ty_2,
result
)
- 0usize];
["Offset of field: uv_process_s_uv_process_exit_s__bindgen_ty_1__bindgen_ty_2::pipeHandle"][::std::mem::offset_of!(
uv_process_s_uv_process_exit_s__bindgen_ty_1__bindgen_ty_2,
pipeHandle
)
- 8usize];
["Offset of field: uv_process_s_uv_process_exit_s__bindgen_ty_1__bindgen_ty_2::duplex_flags"][::std::mem::offset_of!(
uv_process_s_uv_process_exit_s__bindgen_ty_1__bindgen_ty_2,
duplex_flags
)
- 16usize];
["Offset of field: uv_process_s_uv_process_exit_s__bindgen_ty_1__bindgen_ty_2::name"][::std::mem::offset_of!(
uv_process_s_uv_process_exit_s__bindgen_ty_1__bindgen_ty_2,
name
)
- 24usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_process_s_uv_process_exit_s__bindgen_ty_1"]
[::std::mem::size_of::<uv_process_s_uv_process_exit_s__bindgen_ty_1>() - 40usize];
["Alignment of uv_process_s_uv_process_exit_s__bindgen_ty_1"]
[::std::mem::align_of::<uv_process_s_uv_process_exit_s__bindgen_ty_1>() - 8usize];
["Offset of field: uv_process_s_uv_process_exit_s__bindgen_ty_1::io"]
[::std::mem::offset_of!(uv_process_s_uv_process_exit_s__bindgen_ty_1, io) - 0usize];
["Offset of field: uv_process_s_uv_process_exit_s__bindgen_ty_1::connect"]
[::std::mem::offset_of!(uv_process_s_uv_process_exit_s__bindgen_ty_1, connect) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_process_s_uv_process_exit_s"]
[::std::mem::size_of::<uv_process_s_uv_process_exit_s>() - 112usize];
["Alignment of uv_process_s_uv_process_exit_s"]
[::std::mem::align_of::<uv_process_s_uv_process_exit_s>() - 8usize];
["Offset of field: uv_process_s_uv_process_exit_s::data"]
[::std::mem::offset_of!(uv_process_s_uv_process_exit_s, data) - 0usize];
["Offset of field: uv_process_s_uv_process_exit_s::type_"]
[::std::mem::offset_of!(uv_process_s_uv_process_exit_s, type_) - 8usize];
["Offset of field: uv_process_s_uv_process_exit_s::reserved"]
[::std::mem::offset_of!(uv_process_s_uv_process_exit_s, reserved) - 16usize];
["Offset of field: uv_process_s_uv_process_exit_s::u"]
[::std::mem::offset_of!(uv_process_s_uv_process_exit_s, u) - 64usize];
["Offset of field: uv_process_s_uv_process_exit_s::next_req"]
[::std::mem::offset_of!(uv_process_s_uv_process_exit_s, next_req) - 104usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_process_s"][::std::mem::size_of::<uv_process_s>() - 264usize];
["Alignment of uv_process_s"][::std::mem::align_of::<uv_process_s>() - 8usize];
["Offset of field: uv_process_s::data"][::std::mem::offset_of!(uv_process_s, data) - 0usize];
["Offset of field: uv_process_s::loop_"][::std::mem::offset_of!(uv_process_s, loop_) - 8usize];
["Offset of field: uv_process_s::type_"][::std::mem::offset_of!(uv_process_s, type_) - 16usize];
["Offset of field: uv_process_s::close_cb"]
[::std::mem::offset_of!(uv_process_s, close_cb) - 24usize];
["Offset of field: uv_process_s::handle_queue"]
[::std::mem::offset_of!(uv_process_s, handle_queue) - 32usize];
["Offset of field: uv_process_s::u"][::std::mem::offset_of!(uv_process_s, u) - 48usize];
["Offset of field: uv_process_s::endgame_next"]
[::std::mem::offset_of!(uv_process_s, endgame_next) - 80usize];
["Offset of field: uv_process_s::flags"][::std::mem::offset_of!(uv_process_s, flags) - 88usize];
["Offset of field: uv_process_s::exit_cb"]
[::std::mem::offset_of!(uv_process_s, exit_cb) - 96usize];
["Offset of field: uv_process_s::pid"][::std::mem::offset_of!(uv_process_s, pid) - 104usize];
["Offset of field: uv_process_s::exit_req"]
[::std::mem::offset_of!(uv_process_s, exit_req) - 112usize];
["Offset of field: uv_process_s::unused"]
[::std::mem::offset_of!(uv_process_s, unused) - 224usize];
["Offset of field: uv_process_s::exit_signal"]
[::std::mem::offset_of!(uv_process_s, exit_signal) - 232usize];
["Offset of field: uv_process_s::wait_handle"]
[::std::mem::offset_of!(uv_process_s, wait_handle) - 240usize];
["Offset of field: uv_process_s::process_handle"]
[::std::mem::offset_of!(uv_process_s, process_handle) - 248usize];
["Offset of field: uv_process_s::exit_cb_pending"]
[::std::mem::offset_of!(uv_process_s, exit_cb_pending) - 256usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_work_s {
pub data: *mut ::std::os::raw::c_void,
pub type_: uv_req_type,
pub reserved: [*mut ::std::os::raw::c_void; 6usize],
pub u: uv_work_s__bindgen_ty_1,
pub next_req: *mut uv_req_s,
pub loop_: *mut uv_loop_t,
pub work_cb: uv_work_cb,
pub after_work_cb: uv_after_work_cb,
pub work_req: uv__work,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_work_s__bindgen_ty_1 {
pub io: uv_work_s__bindgen_ty_1__bindgen_ty_1,
pub connect: uv_work_s__bindgen_ty_1__bindgen_ty_2,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_work_s__bindgen_ty_1__bindgen_ty_1 {
pub overlapped: OVERLAPPED,
pub queued_bytes: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_work_s__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::size_of::<uv_work_s__bindgen_ty_1__bindgen_ty_1>() - 40usize];
["Alignment of uv_work_s__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::align_of::<uv_work_s__bindgen_ty_1__bindgen_ty_1>() - 8usize];
["Offset of field: uv_work_s__bindgen_ty_1__bindgen_ty_1::overlapped"]
[::std::mem::offset_of!(uv_work_s__bindgen_ty_1__bindgen_ty_1, overlapped) - 0usize];
["Offset of field: uv_work_s__bindgen_ty_1__bindgen_ty_1::queued_bytes"]
[::std::mem::offset_of!(uv_work_s__bindgen_ty_1__bindgen_ty_1, queued_bytes) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_work_s__bindgen_ty_1__bindgen_ty_2 {
pub result: ULONG_PTR,
pub pipeHandle: HANDLE,
pub duplex_flags: DWORD,
pub name: *mut WCHAR,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_work_s__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::size_of::<uv_work_s__bindgen_ty_1__bindgen_ty_2>() - 32usize];
["Alignment of uv_work_s__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::align_of::<uv_work_s__bindgen_ty_1__bindgen_ty_2>() - 8usize];
["Offset of field: uv_work_s__bindgen_ty_1__bindgen_ty_2::result"]
[::std::mem::offset_of!(uv_work_s__bindgen_ty_1__bindgen_ty_2, result) - 0usize];
["Offset of field: uv_work_s__bindgen_ty_1__bindgen_ty_2::pipeHandle"]
[::std::mem::offset_of!(uv_work_s__bindgen_ty_1__bindgen_ty_2, pipeHandle) - 8usize];
["Offset of field: uv_work_s__bindgen_ty_1__bindgen_ty_2::duplex_flags"]
[::std::mem::offset_of!(uv_work_s__bindgen_ty_1__bindgen_ty_2, duplex_flags) - 16usize];
["Offset of field: uv_work_s__bindgen_ty_1__bindgen_ty_2::name"]
[::std::mem::offset_of!(uv_work_s__bindgen_ty_1__bindgen_ty_2, name) - 24usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_work_s__bindgen_ty_1"][::std::mem::size_of::<uv_work_s__bindgen_ty_1>() - 40usize];
["Alignment of uv_work_s__bindgen_ty_1"]
[::std::mem::align_of::<uv_work_s__bindgen_ty_1>() - 8usize];
["Offset of field: uv_work_s__bindgen_ty_1::io"]
[::std::mem::offset_of!(uv_work_s__bindgen_ty_1, io) - 0usize];
["Offset of field: uv_work_s__bindgen_ty_1::connect"]
[::std::mem::offset_of!(uv_work_s__bindgen_ty_1, connect) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_work_s"][::std::mem::size_of::<uv_work_s>() - 176usize];
["Alignment of uv_work_s"][::std::mem::align_of::<uv_work_s>() - 8usize];
["Offset of field: uv_work_s::data"][::std::mem::offset_of!(uv_work_s, data) - 0usize];
["Offset of field: uv_work_s::type_"][::std::mem::offset_of!(uv_work_s, type_) - 8usize];
["Offset of field: uv_work_s::reserved"][::std::mem::offset_of!(uv_work_s, reserved) - 16usize];
["Offset of field: uv_work_s::u"][::std::mem::offset_of!(uv_work_s, u) - 64usize];
["Offset of field: uv_work_s::next_req"][::std::mem::offset_of!(uv_work_s, next_req) - 104usize];
["Offset of field: uv_work_s::loop_"][::std::mem::offset_of!(uv_work_s, loop_) - 112usize];
["Offset of field: uv_work_s::work_cb"][::std::mem::offset_of!(uv_work_s, work_cb) - 120usize];
["Offset of field: uv_work_s::after_work_cb"]
[::std::mem::offset_of!(uv_work_s, after_work_cb) - 128usize];
["Offset of field: uv_work_s::work_req"][::std::mem::offset_of!(uv_work_s, work_req) - 136usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_cpu_times_s {
pub user: u64,
pub nice: u64,
pub sys: u64,
pub idle: u64,
pub irq: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_cpu_times_s"][::std::mem::size_of::<uv_cpu_times_s>() - 40usize];
["Alignment of uv_cpu_times_s"][::std::mem::align_of::<uv_cpu_times_s>() - 8usize];
["Offset of field: uv_cpu_times_s::user"][::std::mem::offset_of!(uv_cpu_times_s, user) - 0usize];
["Offset of field: uv_cpu_times_s::nice"][::std::mem::offset_of!(uv_cpu_times_s, nice) - 8usize];
["Offset of field: uv_cpu_times_s::sys"][::std::mem::offset_of!(uv_cpu_times_s, sys) - 16usize];
["Offset of field: uv_cpu_times_s::idle"][::std::mem::offset_of!(uv_cpu_times_s, idle) - 24usize];
["Offset of field: uv_cpu_times_s::irq"][::std::mem::offset_of!(uv_cpu_times_s, irq) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_cpu_info_s {
pub model: *mut ::std::os::raw::c_char,
pub speed: ::std::os::raw::c_int,
pub cpu_times: uv_cpu_times_s,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_cpu_info_s"][::std::mem::size_of::<uv_cpu_info_s>() - 56usize];
["Alignment of uv_cpu_info_s"][::std::mem::align_of::<uv_cpu_info_s>() - 8usize];
["Offset of field: uv_cpu_info_s::model"][::std::mem::offset_of!(uv_cpu_info_s, model) - 0usize];
["Offset of field: uv_cpu_info_s::speed"][::std::mem::offset_of!(uv_cpu_info_s, speed) - 8usize];
["Offset of field: uv_cpu_info_s::cpu_times"]
[::std::mem::offset_of!(uv_cpu_info_s, cpu_times) - 16usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_interface_address_s {
pub name: *mut ::std::os::raw::c_char,
pub phys_addr: [::std::os::raw::c_char; 6usize],
pub is_internal: ::std::os::raw::c_int,
pub address: uv_interface_address_s__bindgen_ty_1,
pub netmask: uv_interface_address_s__bindgen_ty_2,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_interface_address_s__bindgen_ty_1 {
pub address4: sockaddr_in,
pub address6: sockaddr_in6,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_interface_address_s__bindgen_ty_1"]
[::std::mem::size_of::<uv_interface_address_s__bindgen_ty_1>() - 28usize];
["Alignment of uv_interface_address_s__bindgen_ty_1"]
[::std::mem::align_of::<uv_interface_address_s__bindgen_ty_1>() - 4usize];
["Offset of field: uv_interface_address_s__bindgen_ty_1::address4"]
[::std::mem::offset_of!(uv_interface_address_s__bindgen_ty_1, address4) - 0usize];
["Offset of field: uv_interface_address_s__bindgen_ty_1::address6"]
[::std::mem::offset_of!(uv_interface_address_s__bindgen_ty_1, address6) - 0usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_interface_address_s__bindgen_ty_2 {
pub netmask4: sockaddr_in,
pub netmask6: sockaddr_in6,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_interface_address_s__bindgen_ty_2"]
[::std::mem::size_of::<uv_interface_address_s__bindgen_ty_2>() - 28usize];
["Alignment of uv_interface_address_s__bindgen_ty_2"]
[::std::mem::align_of::<uv_interface_address_s__bindgen_ty_2>() - 4usize];
["Offset of field: uv_interface_address_s__bindgen_ty_2::netmask4"]
[::std::mem::offset_of!(uv_interface_address_s__bindgen_ty_2, netmask4) - 0usize];
["Offset of field: uv_interface_address_s__bindgen_ty_2::netmask6"]
[::std::mem::offset_of!(uv_interface_address_s__bindgen_ty_2, netmask6) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_interface_address_s"][::std::mem::size_of::<uv_interface_address_s>() - 80usize];
["Alignment of uv_interface_address_s"]
[::std::mem::align_of::<uv_interface_address_s>() - 8usize];
["Offset of field: uv_interface_address_s::name"]
[::std::mem::offset_of!(uv_interface_address_s, name) - 0usize];
["Offset of field: uv_interface_address_s::phys_addr"]
[::std::mem::offset_of!(uv_interface_address_s, phys_addr) - 8usize];
["Offset of field: uv_interface_address_s::is_internal"]
[::std::mem::offset_of!(uv_interface_address_s, is_internal) - 16usize];
["Offset of field: uv_interface_address_s::address"]
[::std::mem::offset_of!(uv_interface_address_s, address) - 20usize];
["Offset of field: uv_interface_address_s::netmask"]
[::std::mem::offset_of!(uv_interface_address_s, netmask) - 48usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_passwd_s {
pub username: *mut ::std::os::raw::c_char,
pub uid: ::std::os::raw::c_ulong,
pub gid: ::std::os::raw::c_ulong,
pub shell: *mut ::std::os::raw::c_char,
pub homedir: *mut ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_passwd_s"][::std::mem::size_of::<uv_passwd_s>() - 32usize];
["Alignment of uv_passwd_s"][::std::mem::align_of::<uv_passwd_s>() - 8usize];
["Offset of field: uv_passwd_s::username"]
[::std::mem::offset_of!(uv_passwd_s, username) - 0usize];
["Offset of field: uv_passwd_s::uid"][::std::mem::offset_of!(uv_passwd_s, uid) - 8usize];
["Offset of field: uv_passwd_s::gid"][::std::mem::offset_of!(uv_passwd_s, gid) - 12usize];
["Offset of field: uv_passwd_s::shell"][::std::mem::offset_of!(uv_passwd_s, shell) - 16usize];
["Offset of field: uv_passwd_s::homedir"][::std::mem::offset_of!(uv_passwd_s, homedir) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_group_s {
pub groupname: *mut ::std::os::raw::c_char,
pub gid: ::std::os::raw::c_ulong,
pub members: *mut *mut ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_group_s"][::std::mem::size_of::<uv_group_s>() - 24usize];
["Alignment of uv_group_s"][::std::mem::align_of::<uv_group_s>() - 8usize];
["Offset of field: uv_group_s::groupname"]
[::std::mem::offset_of!(uv_group_s, groupname) - 0usize];
["Offset of field: uv_group_s::gid"][::std::mem::offset_of!(uv_group_s, gid) - 8usize];
["Offset of field: uv_group_s::members"][::std::mem::offset_of!(uv_group_s, members) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_utsname_s {
pub sysname: [::std::os::raw::c_char; 256usize],
pub release: [::std::os::raw::c_char; 256usize],
pub version: [::std::os::raw::c_char; 256usize],
pub machine: [::std::os::raw::c_char; 256usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_utsname_s"][::std::mem::size_of::<uv_utsname_s>() - 1024usize];
["Alignment of uv_utsname_s"][::std::mem::align_of::<uv_utsname_s>() - 1usize];
["Offset of field: uv_utsname_s::sysname"]
[::std::mem::offset_of!(uv_utsname_s, sysname) - 0usize];
["Offset of field: uv_utsname_s::release"]
[::std::mem::offset_of!(uv_utsname_s, release) - 256usize];
["Offset of field: uv_utsname_s::version"]
[::std::mem::offset_of!(uv_utsname_s, version) - 512usize];
["Offset of field: uv_utsname_s::machine"]
[::std::mem::offset_of!(uv_utsname_s, machine) - 768usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_statfs_s {
pub f_type: u64,
pub f_bsize: u64,
pub f_blocks: u64,
pub f_bfree: u64,
pub f_bavail: u64,
pub f_files: u64,
pub f_ffree: u64,
pub f_spare: [u64; 4usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_statfs_s"][::std::mem::size_of::<uv_statfs_s>() - 88usize];
["Alignment of uv_statfs_s"][::std::mem::align_of::<uv_statfs_s>() - 8usize];
["Offset of field: uv_statfs_s::f_type"][::std::mem::offset_of!(uv_statfs_s, f_type) - 0usize];
["Offset of field: uv_statfs_s::f_bsize"][::std::mem::offset_of!(uv_statfs_s, f_bsize) - 8usize];
["Offset of field: uv_statfs_s::f_blocks"]
[::std::mem::offset_of!(uv_statfs_s, f_blocks) - 16usize];
["Offset of field: uv_statfs_s::f_bfree"][::std::mem::offset_of!(uv_statfs_s, f_bfree) - 24usize];
["Offset of field: uv_statfs_s::f_bavail"]
[::std::mem::offset_of!(uv_statfs_s, f_bavail) - 32usize];
["Offset of field: uv_statfs_s::f_files"][::std::mem::offset_of!(uv_statfs_s, f_files) - 40usize];
["Offset of field: uv_statfs_s::f_ffree"][::std::mem::offset_of!(uv_statfs_s, f_ffree) - 48usize];
["Offset of field: uv_statfs_s::f_spare"][::std::mem::offset_of!(uv_statfs_s, f_spare) - 56usize];
};
impl uv_dirent_type_t {
pub const UV_DIRENT_UNKNOWN: uv_dirent_type_t = uv_dirent_type_t(0);
}
impl uv_dirent_type_t {
pub const UV_DIRENT_FILE: uv_dirent_type_t = uv_dirent_type_t(1);
}
impl uv_dirent_type_t {
pub const UV_DIRENT_DIR: uv_dirent_type_t = uv_dirent_type_t(2);
}
impl uv_dirent_type_t {
pub const UV_DIRENT_LINK: uv_dirent_type_t = uv_dirent_type_t(3);
}
impl uv_dirent_type_t {
pub const UV_DIRENT_FIFO: uv_dirent_type_t = uv_dirent_type_t(4);
}
impl uv_dirent_type_t {
pub const UV_DIRENT_SOCKET: uv_dirent_type_t = uv_dirent_type_t(5);
}
impl uv_dirent_type_t {
pub const UV_DIRENT_CHAR: uv_dirent_type_t = uv_dirent_type_t(6);
}
impl uv_dirent_type_t {
pub const UV_DIRENT_BLOCK: uv_dirent_type_t = uv_dirent_type_t(7);
}
#[repr(transparent)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct uv_dirent_type_t(pub ::std::os::raw::c_int);
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_dirent_s {
pub name: *const ::std::os::raw::c_char,
pub type_: uv_dirent_type_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_dirent_s"][::std::mem::size_of::<uv_dirent_s>() - 16usize];
["Alignment of uv_dirent_s"][::std::mem::align_of::<uv_dirent_s>() - 8usize];
["Offset of field: uv_dirent_s::name"][::std::mem::offset_of!(uv_dirent_s, name) - 0usize];
["Offset of field: uv_dirent_s::type_"][::std::mem::offset_of!(uv_dirent_s, type_) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_rusage_t {
pub ru_utime: uv_timeval_t,
pub ru_stime: uv_timeval_t,
pub ru_maxrss: u64,
pub ru_ixrss: u64,
pub ru_idrss: u64,
pub ru_isrss: u64,
pub ru_minflt: u64,
pub ru_majflt: u64,
pub ru_nswap: u64,
pub ru_inblock: u64,
pub ru_oublock: u64,
pub ru_msgsnd: u64,
pub ru_msgrcv: u64,
pub ru_nsignals: u64,
pub ru_nvcsw: u64,
pub ru_nivcsw: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_rusage_t"][::std::mem::size_of::<uv_rusage_t>() - 128usize];
["Alignment of uv_rusage_t"][::std::mem::align_of::<uv_rusage_t>() - 8usize];
["Offset of field: uv_rusage_t::ru_utime"]
[::std::mem::offset_of!(uv_rusage_t, ru_utime) - 0usize];
["Offset of field: uv_rusage_t::ru_stime"]
[::std::mem::offset_of!(uv_rusage_t, ru_stime) - 8usize];
["Offset of field: uv_rusage_t::ru_maxrss"]
[::std::mem::offset_of!(uv_rusage_t, ru_maxrss) - 16usize];
["Offset of field: uv_rusage_t::ru_ixrss"]
[::std::mem::offset_of!(uv_rusage_t, ru_ixrss) - 24usize];
["Offset of field: uv_rusage_t::ru_idrss"]
[::std::mem::offset_of!(uv_rusage_t, ru_idrss) - 32usize];
["Offset of field: uv_rusage_t::ru_isrss"]
[::std::mem::offset_of!(uv_rusage_t, ru_isrss) - 40usize];
["Offset of field: uv_rusage_t::ru_minflt"]
[::std::mem::offset_of!(uv_rusage_t, ru_minflt) - 48usize];
["Offset of field: uv_rusage_t::ru_majflt"]
[::std::mem::offset_of!(uv_rusage_t, ru_majflt) - 56usize];
["Offset of field: uv_rusage_t::ru_nswap"]
[::std::mem::offset_of!(uv_rusage_t, ru_nswap) - 64usize];
["Offset of field: uv_rusage_t::ru_inblock"]
[::std::mem::offset_of!(uv_rusage_t, ru_inblock) - 72usize];
["Offset of field: uv_rusage_t::ru_oublock"]
[::std::mem::offset_of!(uv_rusage_t, ru_oublock) - 80usize];
["Offset of field: uv_rusage_t::ru_msgsnd"]
[::std::mem::offset_of!(uv_rusage_t, ru_msgsnd) - 88usize];
["Offset of field: uv_rusage_t::ru_msgrcv"]
[::std::mem::offset_of!(uv_rusage_t, ru_msgrcv) - 96usize];
["Offset of field: uv_rusage_t::ru_nsignals"]
[::std::mem::offset_of!(uv_rusage_t, ru_nsignals) - 104usize];
["Offset of field: uv_rusage_t::ru_nvcsw"]
[::std::mem::offset_of!(uv_rusage_t, ru_nvcsw) - 112usize];
["Offset of field: uv_rusage_t::ru_nivcsw"]
[::std::mem::offset_of!(uv_rusage_t, ru_nivcsw) - 120usize];
};
pub const UV_THREAD_PRIORITY_HIGHEST: _bindgen_ty_5 = _bindgen_ty_5(2);
pub const UV_THREAD_PRIORITY_ABOVE_NORMAL: _bindgen_ty_5 = _bindgen_ty_5(1);
pub const UV_THREAD_PRIORITY_NORMAL: _bindgen_ty_5 = _bindgen_ty_5(0);
pub const UV_THREAD_PRIORITY_BELOW_NORMAL: _bindgen_ty_5 = _bindgen_ty_5(-1);
pub const UV_THREAD_PRIORITY_LOWEST: _bindgen_ty_5 = _bindgen_ty_5(-2);
#[repr(transparent)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct _bindgen_ty_5(pub ::std::os::raw::c_int);
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_env_item_s {
pub name: *mut ::std::os::raw::c_char,
pub value: *mut ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_env_item_s"][::std::mem::size_of::<uv_env_item_s>() - 16usize];
["Alignment of uv_env_item_s"][::std::mem::align_of::<uv_env_item_s>() - 8usize];
["Offset of field: uv_env_item_s::name"][::std::mem::offset_of!(uv_env_item_s, name) - 0usize];
["Offset of field: uv_env_item_s::value"][::std::mem::offset_of!(uv_env_item_s, value) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_metrics_s {
pub loop_count: u64,
pub events: u64,
pub events_waiting: u64,
pub reserved: [*mut u64; 13usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_metrics_s"][::std::mem::size_of::<uv_metrics_s>() - 128usize];
["Alignment of uv_metrics_s"][::std::mem::align_of::<uv_metrics_s>() - 8usize];
["Offset of field: uv_metrics_s::loop_count"]
[::std::mem::offset_of!(uv_metrics_s, loop_count) - 0usize];
["Offset of field: uv_metrics_s::events"][::std::mem::offset_of!(uv_metrics_s, events) - 8usize];
["Offset of field: uv_metrics_s::events_waiting"]
[::std::mem::offset_of!(uv_metrics_s, events_waiting) - 16usize];
["Offset of field: uv_metrics_s::reserved"]
[::std::mem::offset_of!(uv_metrics_s, reserved) - 24usize];
};
impl uv_fs_type {
pub const UV_FS_UNKNOWN: uv_fs_type = uv_fs_type(-1);
}
impl uv_fs_type {
pub const UV_FS_CUSTOM: uv_fs_type = uv_fs_type(0);
}
impl uv_fs_type {
pub const UV_FS_OPEN: uv_fs_type = uv_fs_type(1);
}
impl uv_fs_type {
pub const UV_FS_CLOSE: uv_fs_type = uv_fs_type(2);
}
impl uv_fs_type {
pub const UV_FS_READ: uv_fs_type = uv_fs_type(3);
}
impl uv_fs_type {
pub const UV_FS_WRITE: uv_fs_type = uv_fs_type(4);
}
impl uv_fs_type {
pub const UV_FS_SENDFILE: uv_fs_type = uv_fs_type(5);
}
impl uv_fs_type {
pub const UV_FS_STAT: uv_fs_type = uv_fs_type(6);
}
impl uv_fs_type {
pub const UV_FS_LSTAT: uv_fs_type = uv_fs_type(7);
}
impl uv_fs_type {
pub const UV_FS_FSTAT: uv_fs_type = uv_fs_type(8);
}
impl uv_fs_type {
pub const UV_FS_FTRUNCATE: uv_fs_type = uv_fs_type(9);
}
impl uv_fs_type {
pub const UV_FS_UTIME: uv_fs_type = uv_fs_type(10);
}
impl uv_fs_type {
pub const UV_FS_FUTIME: uv_fs_type = uv_fs_type(11);
}
impl uv_fs_type {
pub const UV_FS_ACCESS: uv_fs_type = uv_fs_type(12);
}
impl uv_fs_type {
pub const UV_FS_CHMOD: uv_fs_type = uv_fs_type(13);
}
impl uv_fs_type {
pub const UV_FS_FCHMOD: uv_fs_type = uv_fs_type(14);
}
impl uv_fs_type {
pub const UV_FS_FSYNC: uv_fs_type = uv_fs_type(15);
}
impl uv_fs_type {
pub const UV_FS_FDATASYNC: uv_fs_type = uv_fs_type(16);
}
impl uv_fs_type {
pub const UV_FS_UNLINK: uv_fs_type = uv_fs_type(17);
}
impl uv_fs_type {
pub const UV_FS_RMDIR: uv_fs_type = uv_fs_type(18);
}
impl uv_fs_type {
pub const UV_FS_MKDIR: uv_fs_type = uv_fs_type(19);
}
impl uv_fs_type {
pub const UV_FS_MKDTEMP: uv_fs_type = uv_fs_type(20);
}
impl uv_fs_type {
pub const UV_FS_RENAME: uv_fs_type = uv_fs_type(21);
}
impl uv_fs_type {
pub const UV_FS_SCANDIR: uv_fs_type = uv_fs_type(22);
}
impl uv_fs_type {
pub const UV_FS_LINK: uv_fs_type = uv_fs_type(23);
}
impl uv_fs_type {
pub const UV_FS_SYMLINK: uv_fs_type = uv_fs_type(24);
}
impl uv_fs_type {
pub const UV_FS_READLINK: uv_fs_type = uv_fs_type(25);
}
impl uv_fs_type {
pub const UV_FS_CHOWN: uv_fs_type = uv_fs_type(26);
}
impl uv_fs_type {
pub const UV_FS_FCHOWN: uv_fs_type = uv_fs_type(27);
}
impl uv_fs_type {
pub const UV_FS_REALPATH: uv_fs_type = uv_fs_type(28);
}
impl uv_fs_type {
pub const UV_FS_COPYFILE: uv_fs_type = uv_fs_type(29);
}
impl uv_fs_type {
pub const UV_FS_LCHOWN: uv_fs_type = uv_fs_type(30);
}
impl uv_fs_type {
pub const UV_FS_OPENDIR: uv_fs_type = uv_fs_type(31);
}
impl uv_fs_type {
pub const UV_FS_READDIR: uv_fs_type = uv_fs_type(32);
}
impl uv_fs_type {
pub const UV_FS_CLOSEDIR: uv_fs_type = uv_fs_type(33);
}
impl uv_fs_type {
pub const UV_FS_STATFS: uv_fs_type = uv_fs_type(34);
}
impl uv_fs_type {
pub const UV_FS_MKSTEMP: uv_fs_type = uv_fs_type(35);
}
impl uv_fs_type {
pub const UV_FS_LUTIME: uv_fs_type = uv_fs_type(36);
}
#[repr(transparent)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct uv_fs_type(pub ::std::os::raw::c_int);
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_dir_s {
pub dirents: *mut uv_dirent_t,
pub nentries: usize,
pub reserved: [*mut ::std::os::raw::c_void; 4usize],
pub dir_handle: HANDLE,
pub find_data: WIN32_FIND_DATAW,
pub need_find_call: BOOL,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_dir_s"][::std::mem::size_of::<uv_dir_s>() - 656usize];
["Alignment of uv_dir_s"][::std::mem::align_of::<uv_dir_s>() - 8usize];
["Offset of field: uv_dir_s::dirents"][::std::mem::offset_of!(uv_dir_s, dirents) - 0usize];
["Offset of field: uv_dir_s::nentries"][::std::mem::offset_of!(uv_dir_s, nentries) - 8usize];
["Offset of field: uv_dir_s::reserved"][::std::mem::offset_of!(uv_dir_s, reserved) - 16usize];
["Offset of field: uv_dir_s::dir_handle"][::std::mem::offset_of!(uv_dir_s, dir_handle) - 48usize];
["Offset of field: uv_dir_s::find_data"][::std::mem::offset_of!(uv_dir_s, find_data) - 56usize];
["Offset of field: uv_dir_s::need_find_call"]
[::std::mem::offset_of!(uv_dir_s, need_find_call) - 648usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_fs_s {
pub data: *mut ::std::os::raw::c_void,
pub type_: uv_req_type,
pub reserved: [*mut ::std::os::raw::c_void; 6usize],
pub u: uv_fs_s__bindgen_ty_1,
pub next_req: *mut uv_req_s,
pub fs_type: uv_fs_type,
pub loop_: *mut uv_loop_t,
pub cb: uv_fs_cb,
pub result: isize,
pub ptr: *mut ::std::os::raw::c_void,
pub path: *const ::std::os::raw::c_char,
pub statbuf: uv_stat_t,
pub work_req: uv__work,
pub flags: ::std::os::raw::c_int,
pub sys_errno_: DWORD,
pub file: uv_fs_s__bindgen_ty_2,
pub fs: uv_fs_s__bindgen_ty_3,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_fs_s__bindgen_ty_1 {
pub io: uv_fs_s__bindgen_ty_1__bindgen_ty_1,
pub connect: uv_fs_s__bindgen_ty_1__bindgen_ty_2,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_fs_s__bindgen_ty_1__bindgen_ty_1 {
pub overlapped: OVERLAPPED,
pub queued_bytes: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_fs_s__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::size_of::<uv_fs_s__bindgen_ty_1__bindgen_ty_1>() - 40usize];
["Alignment of uv_fs_s__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::align_of::<uv_fs_s__bindgen_ty_1__bindgen_ty_1>() - 8usize];
["Offset of field: uv_fs_s__bindgen_ty_1__bindgen_ty_1::overlapped"]
[::std::mem::offset_of!(uv_fs_s__bindgen_ty_1__bindgen_ty_1, overlapped) - 0usize];
["Offset of field: uv_fs_s__bindgen_ty_1__bindgen_ty_1::queued_bytes"]
[::std::mem::offset_of!(uv_fs_s__bindgen_ty_1__bindgen_ty_1, queued_bytes) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_fs_s__bindgen_ty_1__bindgen_ty_2 {
pub result: ULONG_PTR,
pub pipeHandle: HANDLE,
pub duplex_flags: DWORD,
pub name: *mut WCHAR,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_fs_s__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::size_of::<uv_fs_s__bindgen_ty_1__bindgen_ty_2>() - 32usize];
["Alignment of uv_fs_s__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::align_of::<uv_fs_s__bindgen_ty_1__bindgen_ty_2>() - 8usize];
["Offset of field: uv_fs_s__bindgen_ty_1__bindgen_ty_2::result"]
[::std::mem::offset_of!(uv_fs_s__bindgen_ty_1__bindgen_ty_2, result) - 0usize];
["Offset of field: uv_fs_s__bindgen_ty_1__bindgen_ty_2::pipeHandle"]
[::std::mem::offset_of!(uv_fs_s__bindgen_ty_1__bindgen_ty_2, pipeHandle) - 8usize];
["Offset of field: uv_fs_s__bindgen_ty_1__bindgen_ty_2::duplex_flags"]
[::std::mem::offset_of!(uv_fs_s__bindgen_ty_1__bindgen_ty_2, duplex_flags) - 16usize];
["Offset of field: uv_fs_s__bindgen_ty_1__bindgen_ty_2::name"]
[::std::mem::offset_of!(uv_fs_s__bindgen_ty_1__bindgen_ty_2, name) - 24usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_fs_s__bindgen_ty_1"][::std::mem::size_of::<uv_fs_s__bindgen_ty_1>() - 40usize];
["Alignment of uv_fs_s__bindgen_ty_1"][::std::mem::align_of::<uv_fs_s__bindgen_ty_1>() - 8usize];
["Offset of field: uv_fs_s__bindgen_ty_1::io"]
[::std::mem::offset_of!(uv_fs_s__bindgen_ty_1, io) - 0usize];
["Offset of field: uv_fs_s__bindgen_ty_1::connect"]
[::std::mem::offset_of!(uv_fs_s__bindgen_ty_1, connect) - 0usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_fs_s__bindgen_ty_2 {
pub pathw: *mut WCHAR,
pub fd: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_fs_s__bindgen_ty_2"][::std::mem::size_of::<uv_fs_s__bindgen_ty_2>() - 8usize];
["Alignment of uv_fs_s__bindgen_ty_2"][::std::mem::align_of::<uv_fs_s__bindgen_ty_2>() - 8usize];
["Offset of field: uv_fs_s__bindgen_ty_2::pathw"]
[::std::mem::offset_of!(uv_fs_s__bindgen_ty_2, pathw) - 0usize];
["Offset of field: uv_fs_s__bindgen_ty_2::fd"]
[::std::mem::offset_of!(uv_fs_s__bindgen_ty_2, fd) - 0usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_fs_s__bindgen_ty_3 {
pub info: uv_fs_s__bindgen_ty_3__bindgen_ty_1,
pub time: uv_fs_s__bindgen_ty_3__bindgen_ty_2,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_fs_s__bindgen_ty_3__bindgen_ty_1 {
pub mode: ::std::os::raw::c_int,
pub new_pathw: *mut WCHAR,
pub file_flags: ::std::os::raw::c_int,
pub fd_out: ::std::os::raw::c_int,
pub nbufs: ::std::os::raw::c_uint,
pub bufs: *mut uv_buf_t,
pub offset: i64,
pub bufsml: [uv_buf_t; 4usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_fs_s__bindgen_ty_3__bindgen_ty_1"]
[::std::mem::size_of::<uv_fs_s__bindgen_ty_3__bindgen_ty_1>() - 112usize];
["Alignment of uv_fs_s__bindgen_ty_3__bindgen_ty_1"]
[::std::mem::align_of::<uv_fs_s__bindgen_ty_3__bindgen_ty_1>() - 8usize];
["Offset of field: uv_fs_s__bindgen_ty_3__bindgen_ty_1::mode"]
[::std::mem::offset_of!(uv_fs_s__bindgen_ty_3__bindgen_ty_1, mode) - 0usize];
["Offset of field: uv_fs_s__bindgen_ty_3__bindgen_ty_1::new_pathw"]
[::std::mem::offset_of!(uv_fs_s__bindgen_ty_3__bindgen_ty_1, new_pathw) - 8usize];
["Offset of field: uv_fs_s__bindgen_ty_3__bindgen_ty_1::file_flags"]
[::std::mem::offset_of!(uv_fs_s__bindgen_ty_3__bindgen_ty_1, file_flags) - 16usize];
["Offset of field: uv_fs_s__bindgen_ty_3__bindgen_ty_1::fd_out"]
[::std::mem::offset_of!(uv_fs_s__bindgen_ty_3__bindgen_ty_1, fd_out) - 20usize];
["Offset of field: uv_fs_s__bindgen_ty_3__bindgen_ty_1::nbufs"]
[::std::mem::offset_of!(uv_fs_s__bindgen_ty_3__bindgen_ty_1, nbufs) - 24usize];
["Offset of field: uv_fs_s__bindgen_ty_3__bindgen_ty_1::bufs"]
[::std::mem::offset_of!(uv_fs_s__bindgen_ty_3__bindgen_ty_1, bufs) - 32usize];
["Offset of field: uv_fs_s__bindgen_ty_3__bindgen_ty_1::offset"]
[::std::mem::offset_of!(uv_fs_s__bindgen_ty_3__bindgen_ty_1, offset) - 40usize];
["Offset of field: uv_fs_s__bindgen_ty_3__bindgen_ty_1::bufsml"]
[::std::mem::offset_of!(uv_fs_s__bindgen_ty_3__bindgen_ty_1, bufsml) - 48usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_fs_s__bindgen_ty_3__bindgen_ty_2 {
pub atime: f64,
pub mtime: f64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_fs_s__bindgen_ty_3__bindgen_ty_2"]
[::std::mem::size_of::<uv_fs_s__bindgen_ty_3__bindgen_ty_2>() - 16usize];
["Alignment of uv_fs_s__bindgen_ty_3__bindgen_ty_2"]
[::std::mem::align_of::<uv_fs_s__bindgen_ty_3__bindgen_ty_2>() - 8usize];
["Offset of field: uv_fs_s__bindgen_ty_3__bindgen_ty_2::atime"]
[::std::mem::offset_of!(uv_fs_s__bindgen_ty_3__bindgen_ty_2, atime) - 0usize];
["Offset of field: uv_fs_s__bindgen_ty_3__bindgen_ty_2::mtime"]
[::std::mem::offset_of!(uv_fs_s__bindgen_ty_3__bindgen_ty_2, mtime) - 8usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_fs_s__bindgen_ty_3"][::std::mem::size_of::<uv_fs_s__bindgen_ty_3>() - 112usize];
["Alignment of uv_fs_s__bindgen_ty_3"][::std::mem::align_of::<uv_fs_s__bindgen_ty_3>() - 8usize];
["Offset of field: uv_fs_s__bindgen_ty_3::info"]
[::std::mem::offset_of!(uv_fs_s__bindgen_ty_3, info) - 0usize];
["Offset of field: uv_fs_s__bindgen_ty_3::time"]
[::std::mem::offset_of!(uv_fs_s__bindgen_ty_3, time) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_fs_s"][::std::mem::size_of::<uv_fs_s>() - 456usize];
["Alignment of uv_fs_s"][::std::mem::align_of::<uv_fs_s>() - 8usize];
["Offset of field: uv_fs_s::data"][::std::mem::offset_of!(uv_fs_s, data) - 0usize];
["Offset of field: uv_fs_s::type_"][::std::mem::offset_of!(uv_fs_s, type_) - 8usize];
["Offset of field: uv_fs_s::reserved"][::std::mem::offset_of!(uv_fs_s, reserved) - 16usize];
["Offset of field: uv_fs_s::u"][::std::mem::offset_of!(uv_fs_s, u) - 64usize];
["Offset of field: uv_fs_s::next_req"][::std::mem::offset_of!(uv_fs_s, next_req) - 104usize];
["Offset of field: uv_fs_s::fs_type"][::std::mem::offset_of!(uv_fs_s, fs_type) - 112usize];
["Offset of field: uv_fs_s::loop_"][::std::mem::offset_of!(uv_fs_s, loop_) - 120usize];
["Offset of field: uv_fs_s::cb"][::std::mem::offset_of!(uv_fs_s, cb) - 128usize];
["Offset of field: uv_fs_s::result"][::std::mem::offset_of!(uv_fs_s, result) - 136usize];
["Offset of field: uv_fs_s::ptr"][::std::mem::offset_of!(uv_fs_s, ptr) - 144usize];
["Offset of field: uv_fs_s::path"][::std::mem::offset_of!(uv_fs_s, path) - 152usize];
["Offset of field: uv_fs_s::statbuf"][::std::mem::offset_of!(uv_fs_s, statbuf) - 160usize];
["Offset of field: uv_fs_s::work_req"][::std::mem::offset_of!(uv_fs_s, work_req) - 288usize];
["Offset of field: uv_fs_s::flags"][::std::mem::offset_of!(uv_fs_s, flags) - 328usize];
["Offset of field: uv_fs_s::sys_errno_"][::std::mem::offset_of!(uv_fs_s, sys_errno_) - 332usize];
["Offset of field: uv_fs_s::file"][::std::mem::offset_of!(uv_fs_s, file) - 336usize];
["Offset of field: uv_fs_s::fs"][::std::mem::offset_of!(uv_fs_s, fs) - 344usize];
};
impl uv_fs_event {
pub const UV_RENAME: uv_fs_event = uv_fs_event(1);
}
impl uv_fs_event {
pub const UV_CHANGE: uv_fs_event = uv_fs_event(2);
}
#[repr(transparent)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct uv_fs_event(pub ::std::os::raw::c_int);
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_fs_event_s {
pub data: *mut ::std::os::raw::c_void,
pub loop_: *mut uv_loop_t,
pub type_: uv_handle_type,
pub close_cb: uv_close_cb,
pub handle_queue: uv__queue,
pub u: uv_fs_event_s__bindgen_ty_1,
pub endgame_next: *mut uv_handle_t,
pub flags: ::std::os::raw::c_uint,
pub path: *mut ::std::os::raw::c_char,
pub req: uv_fs_event_s_uv_fs_event_req_s,
pub dir_handle: HANDLE,
pub req_pending: ::std::os::raw::c_int,
pub cb: uv_fs_event_cb,
pub filew: *mut WCHAR,
pub short_filew: *mut WCHAR,
pub dirw: *mut WCHAR,
pub buffer: *mut ::std::os::raw::c_char,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_fs_event_s__bindgen_ty_1 {
pub fd: ::std::os::raw::c_int,
pub reserved: [*mut ::std::os::raw::c_void; 4usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_fs_event_s__bindgen_ty_1"]
[::std::mem::size_of::<uv_fs_event_s__bindgen_ty_1>() - 32usize];
["Alignment of uv_fs_event_s__bindgen_ty_1"]
[::std::mem::align_of::<uv_fs_event_s__bindgen_ty_1>() - 8usize];
["Offset of field: uv_fs_event_s__bindgen_ty_1::fd"]
[::std::mem::offset_of!(uv_fs_event_s__bindgen_ty_1, fd) - 0usize];
["Offset of field: uv_fs_event_s__bindgen_ty_1::reserved"]
[::std::mem::offset_of!(uv_fs_event_s__bindgen_ty_1, reserved) - 0usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_fs_event_s_uv_fs_event_req_s {
pub data: *mut ::std::os::raw::c_void,
pub type_: uv_req_type,
pub reserved: [*mut ::std::os::raw::c_void; 6usize],
pub u: uv_fs_event_s_uv_fs_event_req_s__bindgen_ty_1,
pub next_req: *mut uv_req_s,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_fs_event_s_uv_fs_event_req_s__bindgen_ty_1 {
pub io: uv_fs_event_s_uv_fs_event_req_s__bindgen_ty_1__bindgen_ty_1,
pub connect: uv_fs_event_s_uv_fs_event_req_s__bindgen_ty_1__bindgen_ty_2,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_fs_event_s_uv_fs_event_req_s__bindgen_ty_1__bindgen_ty_1 {
pub overlapped: OVERLAPPED,
pub queued_bytes: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_fs_event_s_uv_fs_event_req_s__bindgen_ty_1__bindgen_ty_1"][::std::mem::size_of::<
uv_fs_event_s_uv_fs_event_req_s__bindgen_ty_1__bindgen_ty_1,
>()
- 40usize];
["Alignment of uv_fs_event_s_uv_fs_event_req_s__bindgen_ty_1__bindgen_ty_1"][::std::mem::align_of::<
uv_fs_event_s_uv_fs_event_req_s__bindgen_ty_1__bindgen_ty_1,
>() - 8usize];
["Offset of field: uv_fs_event_s_uv_fs_event_req_s__bindgen_ty_1__bindgen_ty_1::overlapped"][::std::mem::offset_of!(
uv_fs_event_s_uv_fs_event_req_s__bindgen_ty_1__bindgen_ty_1,
overlapped
)
- 0usize];
["Offset of field: uv_fs_event_s_uv_fs_event_req_s__bindgen_ty_1__bindgen_ty_1::queued_bytes"][::std::mem::offset_of!(
uv_fs_event_s_uv_fs_event_req_s__bindgen_ty_1__bindgen_ty_1,
queued_bytes
)
- 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_fs_event_s_uv_fs_event_req_s__bindgen_ty_1__bindgen_ty_2 {
pub result: ULONG_PTR,
pub pipeHandle: HANDLE,
pub duplex_flags: DWORD,
pub name: *mut WCHAR,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_fs_event_s_uv_fs_event_req_s__bindgen_ty_1__bindgen_ty_2"][::std::mem::size_of::<
uv_fs_event_s_uv_fs_event_req_s__bindgen_ty_1__bindgen_ty_2,
>()
- 32usize];
["Alignment of uv_fs_event_s_uv_fs_event_req_s__bindgen_ty_1__bindgen_ty_2"][::std::mem::align_of::<
uv_fs_event_s_uv_fs_event_req_s__bindgen_ty_1__bindgen_ty_2,
>() - 8usize];
["Offset of field: uv_fs_event_s_uv_fs_event_req_s__bindgen_ty_1__bindgen_ty_2::result"][::std::mem::offset_of!(
uv_fs_event_s_uv_fs_event_req_s__bindgen_ty_1__bindgen_ty_2,
result
)
- 0usize];
["Offset of field: uv_fs_event_s_uv_fs_event_req_s__bindgen_ty_1__bindgen_ty_2::pipeHandle"][::std::mem::offset_of!(
uv_fs_event_s_uv_fs_event_req_s__bindgen_ty_1__bindgen_ty_2,
pipeHandle
)
- 8usize];
["Offset of field: uv_fs_event_s_uv_fs_event_req_s__bindgen_ty_1__bindgen_ty_2::duplex_flags"][::std::mem::offset_of!(
uv_fs_event_s_uv_fs_event_req_s__bindgen_ty_1__bindgen_ty_2,
duplex_flags
)
- 16usize];
["Offset of field: uv_fs_event_s_uv_fs_event_req_s__bindgen_ty_1__bindgen_ty_2::name"][::std::mem::offset_of!(
uv_fs_event_s_uv_fs_event_req_s__bindgen_ty_1__bindgen_ty_2,
name
)
- 24usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_fs_event_s_uv_fs_event_req_s__bindgen_ty_1"]
[::std::mem::size_of::<uv_fs_event_s_uv_fs_event_req_s__bindgen_ty_1>() - 40usize];
["Alignment of uv_fs_event_s_uv_fs_event_req_s__bindgen_ty_1"]
[::std::mem::align_of::<uv_fs_event_s_uv_fs_event_req_s__bindgen_ty_1>() - 8usize];
["Offset of field: uv_fs_event_s_uv_fs_event_req_s__bindgen_ty_1::io"]
[::std::mem::offset_of!(uv_fs_event_s_uv_fs_event_req_s__bindgen_ty_1, io) - 0usize];
["Offset of field: uv_fs_event_s_uv_fs_event_req_s__bindgen_ty_1::connect"]
[::std::mem::offset_of!(uv_fs_event_s_uv_fs_event_req_s__bindgen_ty_1, connect) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_fs_event_s_uv_fs_event_req_s"]
[::std::mem::size_of::<uv_fs_event_s_uv_fs_event_req_s>() - 112usize];
["Alignment of uv_fs_event_s_uv_fs_event_req_s"]
[::std::mem::align_of::<uv_fs_event_s_uv_fs_event_req_s>() - 8usize];
["Offset of field: uv_fs_event_s_uv_fs_event_req_s::data"]
[::std::mem::offset_of!(uv_fs_event_s_uv_fs_event_req_s, data) - 0usize];
["Offset of field: uv_fs_event_s_uv_fs_event_req_s::type_"]
[::std::mem::offset_of!(uv_fs_event_s_uv_fs_event_req_s, type_) - 8usize];
["Offset of field: uv_fs_event_s_uv_fs_event_req_s::reserved"]
[::std::mem::offset_of!(uv_fs_event_s_uv_fs_event_req_s, reserved) - 16usize];
["Offset of field: uv_fs_event_s_uv_fs_event_req_s::u"]
[::std::mem::offset_of!(uv_fs_event_s_uv_fs_event_req_s, u) - 64usize];
["Offset of field: uv_fs_event_s_uv_fs_event_req_s::next_req"]
[::std::mem::offset_of!(uv_fs_event_s_uv_fs_event_req_s, next_req) - 104usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_fs_event_s"][::std::mem::size_of::<uv_fs_event_s>() - 272usize];
["Alignment of uv_fs_event_s"][::std::mem::align_of::<uv_fs_event_s>() - 8usize];
["Offset of field: uv_fs_event_s::data"][::std::mem::offset_of!(uv_fs_event_s, data) - 0usize];
["Offset of field: uv_fs_event_s::loop_"][::std::mem::offset_of!(uv_fs_event_s, loop_) - 8usize];
["Offset of field: uv_fs_event_s::type_"][::std::mem::offset_of!(uv_fs_event_s, type_) - 16usize];
["Offset of field: uv_fs_event_s::close_cb"]
[::std::mem::offset_of!(uv_fs_event_s, close_cb) - 24usize];
["Offset of field: uv_fs_event_s::handle_queue"]
[::std::mem::offset_of!(uv_fs_event_s, handle_queue) - 32usize];
["Offset of field: uv_fs_event_s::u"][::std::mem::offset_of!(uv_fs_event_s, u) - 48usize];
["Offset of field: uv_fs_event_s::endgame_next"]
[::std::mem::offset_of!(uv_fs_event_s, endgame_next) - 80usize];
["Offset of field: uv_fs_event_s::flags"][::std::mem::offset_of!(uv_fs_event_s, flags) - 88usize];
["Offset of field: uv_fs_event_s::path"][::std::mem::offset_of!(uv_fs_event_s, path) - 96usize];
["Offset of field: uv_fs_event_s::req"][::std::mem::offset_of!(uv_fs_event_s, req) - 104usize];
["Offset of field: uv_fs_event_s::dir_handle"]
[::std::mem::offset_of!(uv_fs_event_s, dir_handle) - 216usize];
["Offset of field: uv_fs_event_s::req_pending"]
[::std::mem::offset_of!(uv_fs_event_s, req_pending) - 224usize];
["Offset of field: uv_fs_event_s::cb"][::std::mem::offset_of!(uv_fs_event_s, cb) - 232usize];
["Offset of field: uv_fs_event_s::filew"]
[::std::mem::offset_of!(uv_fs_event_s, filew) - 240usize];
["Offset of field: uv_fs_event_s::short_filew"]
[::std::mem::offset_of!(uv_fs_event_s, short_filew) - 248usize];
["Offset of field: uv_fs_event_s::dirw"][::std::mem::offset_of!(uv_fs_event_s, dirw) - 256usize];
["Offset of field: uv_fs_event_s::buffer"]
[::std::mem::offset_of!(uv_fs_event_s, buffer) - 264usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_fs_poll_s {
pub data: *mut ::std::os::raw::c_void,
pub loop_: *mut uv_loop_t,
pub type_: uv_handle_type,
pub close_cb: uv_close_cb,
pub handle_queue: uv__queue,
pub u: uv_fs_poll_s__bindgen_ty_1,
pub endgame_next: *mut uv_handle_t,
pub flags: ::std::os::raw::c_uint,
pub poll_ctx: *mut ::std::os::raw::c_void,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_fs_poll_s__bindgen_ty_1 {
pub fd: ::std::os::raw::c_int,
pub reserved: [*mut ::std::os::raw::c_void; 4usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_fs_poll_s__bindgen_ty_1"]
[::std::mem::size_of::<uv_fs_poll_s__bindgen_ty_1>() - 32usize];
["Alignment of uv_fs_poll_s__bindgen_ty_1"]
[::std::mem::align_of::<uv_fs_poll_s__bindgen_ty_1>() - 8usize];
["Offset of field: uv_fs_poll_s__bindgen_ty_1::fd"]
[::std::mem::offset_of!(uv_fs_poll_s__bindgen_ty_1, fd) - 0usize];
["Offset of field: uv_fs_poll_s__bindgen_ty_1::reserved"]
[::std::mem::offset_of!(uv_fs_poll_s__bindgen_ty_1, reserved) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_fs_poll_s"][::std::mem::size_of::<uv_fs_poll_s>() - 104usize];
["Alignment of uv_fs_poll_s"][::std::mem::align_of::<uv_fs_poll_s>() - 8usize];
["Offset of field: uv_fs_poll_s::data"][::std::mem::offset_of!(uv_fs_poll_s, data) - 0usize];
["Offset of field: uv_fs_poll_s::loop_"][::std::mem::offset_of!(uv_fs_poll_s, loop_) - 8usize];
["Offset of field: uv_fs_poll_s::type_"][::std::mem::offset_of!(uv_fs_poll_s, type_) - 16usize];
["Offset of field: uv_fs_poll_s::close_cb"]
[::std::mem::offset_of!(uv_fs_poll_s, close_cb) - 24usize];
["Offset of field: uv_fs_poll_s::handle_queue"]
[::std::mem::offset_of!(uv_fs_poll_s, handle_queue) - 32usize];
["Offset of field: uv_fs_poll_s::u"][::std::mem::offset_of!(uv_fs_poll_s, u) - 48usize];
["Offset of field: uv_fs_poll_s::endgame_next"]
[::std::mem::offset_of!(uv_fs_poll_s, endgame_next) - 80usize];
["Offset of field: uv_fs_poll_s::flags"][::std::mem::offset_of!(uv_fs_poll_s, flags) - 88usize];
["Offset of field: uv_fs_poll_s::poll_ctx"]
[::std::mem::offset_of!(uv_fs_poll_s, poll_ctx) - 96usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_signal_s {
pub data: *mut ::std::os::raw::c_void,
pub loop_: *mut uv_loop_t,
pub type_: uv_handle_type,
pub close_cb: uv_close_cb,
pub handle_queue: uv__queue,
pub u: uv_signal_s__bindgen_ty_1,
pub endgame_next: *mut uv_handle_t,
pub flags: ::std::os::raw::c_uint,
pub signal_cb: uv_signal_cb,
pub signum: ::std::os::raw::c_int,
pub tree_entry: uv_signal_s__bindgen_ty_2,
pub signal_req: uv_req_s,
pub pending_signum: ::std::os::raw::c_ulong,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_signal_s__bindgen_ty_1 {
pub fd: ::std::os::raw::c_int,
pub reserved: [*mut ::std::os::raw::c_void; 4usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_signal_s__bindgen_ty_1"]
[::std::mem::size_of::<uv_signal_s__bindgen_ty_1>() - 32usize];
["Alignment of uv_signal_s__bindgen_ty_1"]
[::std::mem::align_of::<uv_signal_s__bindgen_ty_1>() - 8usize];
["Offset of field: uv_signal_s__bindgen_ty_1::fd"]
[::std::mem::offset_of!(uv_signal_s__bindgen_ty_1, fd) - 0usize];
["Offset of field: uv_signal_s__bindgen_ty_1::reserved"]
[::std::mem::offset_of!(uv_signal_s__bindgen_ty_1, reserved) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_signal_s__bindgen_ty_2 {
pub rbe_left: *mut uv_signal_s,
pub rbe_right: *mut uv_signal_s,
pub rbe_parent: *mut uv_signal_s,
pub rbe_color: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_signal_s__bindgen_ty_2"]
[::std::mem::size_of::<uv_signal_s__bindgen_ty_2>() - 32usize];
["Alignment of uv_signal_s__bindgen_ty_2"]
[::std::mem::align_of::<uv_signal_s__bindgen_ty_2>() - 8usize];
["Offset of field: uv_signal_s__bindgen_ty_2::rbe_left"]
[::std::mem::offset_of!(uv_signal_s__bindgen_ty_2, rbe_left) - 0usize];
["Offset of field: uv_signal_s__bindgen_ty_2::rbe_right"]
[::std::mem::offset_of!(uv_signal_s__bindgen_ty_2, rbe_right) - 8usize];
["Offset of field: uv_signal_s__bindgen_ty_2::rbe_parent"]
[::std::mem::offset_of!(uv_signal_s__bindgen_ty_2, rbe_parent) - 16usize];
["Offset of field: uv_signal_s__bindgen_ty_2::rbe_color"]
[::std::mem::offset_of!(uv_signal_s__bindgen_ty_2, rbe_color) - 24usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_signal_s"][::std::mem::size_of::<uv_signal_s>() - 264usize];
["Alignment of uv_signal_s"][::std::mem::align_of::<uv_signal_s>() - 8usize];
["Offset of field: uv_signal_s::data"][::std::mem::offset_of!(uv_signal_s, data) - 0usize];
["Offset of field: uv_signal_s::loop_"][::std::mem::offset_of!(uv_signal_s, loop_) - 8usize];
["Offset of field: uv_signal_s::type_"][::std::mem::offset_of!(uv_signal_s, type_) - 16usize];
["Offset of field: uv_signal_s::close_cb"]
[::std::mem::offset_of!(uv_signal_s, close_cb) - 24usize];
["Offset of field: uv_signal_s::handle_queue"]
[::std::mem::offset_of!(uv_signal_s, handle_queue) - 32usize];
["Offset of field: uv_signal_s::u"][::std::mem::offset_of!(uv_signal_s, u) - 48usize];
["Offset of field: uv_signal_s::endgame_next"]
[::std::mem::offset_of!(uv_signal_s, endgame_next) - 80usize];
["Offset of field: uv_signal_s::flags"][::std::mem::offset_of!(uv_signal_s, flags) - 88usize];
["Offset of field: uv_signal_s::signal_cb"]
[::std::mem::offset_of!(uv_signal_s, signal_cb) - 96usize];
["Offset of field: uv_signal_s::signum"][::std::mem::offset_of!(uv_signal_s, signum) - 104usize];
["Offset of field: uv_signal_s::tree_entry"]
[::std::mem::offset_of!(uv_signal_s, tree_entry) - 112usize];
["Offset of field: uv_signal_s::signal_req"]
[::std::mem::offset_of!(uv_signal_s, signal_req) - 144usize];
["Offset of field: uv_signal_s::pending_signum"]
[::std::mem::offset_of!(uv_signal_s, pending_signum) - 256usize];
};
impl uv_fs_event_flags {
pub const UV_FS_EVENT_WATCH_ENTRY: uv_fs_event_flags = uv_fs_event_flags(1);
}
impl uv_fs_event_flags {
pub const UV_FS_EVENT_STAT: uv_fs_event_flags = uv_fs_event_flags(2);
}
impl uv_fs_event_flags {
pub const UV_FS_EVENT_RECURSIVE: uv_fs_event_flags = uv_fs_event_flags(4);
}
#[repr(transparent)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct uv_fs_event_flags(pub ::std::os::raw::c_int);
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_random_s {
pub data: *mut ::std::os::raw::c_void,
pub type_: uv_req_type,
pub reserved: [*mut ::std::os::raw::c_void; 6usize],
pub u: uv_random_s__bindgen_ty_1,
pub next_req: *mut uv_req_s,
pub loop_: *mut uv_loop_t,
pub status: ::std::os::raw::c_int,
pub buf: *mut ::std::os::raw::c_void,
pub buflen: usize,
pub cb: uv_random_cb,
pub work_req: uv__work,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_random_s__bindgen_ty_1 {
pub io: uv_random_s__bindgen_ty_1__bindgen_ty_1,
pub connect: uv_random_s__bindgen_ty_1__bindgen_ty_2,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_random_s__bindgen_ty_1__bindgen_ty_1 {
pub overlapped: OVERLAPPED,
pub queued_bytes: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_random_s__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::size_of::<uv_random_s__bindgen_ty_1__bindgen_ty_1>() - 40usize];
["Alignment of uv_random_s__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::align_of::<uv_random_s__bindgen_ty_1__bindgen_ty_1>() - 8usize];
["Offset of field: uv_random_s__bindgen_ty_1__bindgen_ty_1::overlapped"]
[::std::mem::offset_of!(uv_random_s__bindgen_ty_1__bindgen_ty_1, overlapped) - 0usize];
["Offset of field: uv_random_s__bindgen_ty_1__bindgen_ty_1::queued_bytes"]
[::std::mem::offset_of!(uv_random_s__bindgen_ty_1__bindgen_ty_1, queued_bytes) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_random_s__bindgen_ty_1__bindgen_ty_2 {
pub result: ULONG_PTR,
pub pipeHandle: HANDLE,
pub duplex_flags: DWORD,
pub name: *mut WCHAR,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_random_s__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::size_of::<uv_random_s__bindgen_ty_1__bindgen_ty_2>() - 32usize];
["Alignment of uv_random_s__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::align_of::<uv_random_s__bindgen_ty_1__bindgen_ty_2>() - 8usize];
["Offset of field: uv_random_s__bindgen_ty_1__bindgen_ty_2::result"]
[::std::mem::offset_of!(uv_random_s__bindgen_ty_1__bindgen_ty_2, result) - 0usize];
["Offset of field: uv_random_s__bindgen_ty_1__bindgen_ty_2::pipeHandle"]
[::std::mem::offset_of!(uv_random_s__bindgen_ty_1__bindgen_ty_2, pipeHandle) - 8usize];
["Offset of field: uv_random_s__bindgen_ty_1__bindgen_ty_2::duplex_flags"]
[::std::mem::offset_of!(uv_random_s__bindgen_ty_1__bindgen_ty_2, duplex_flags) - 16usize];
["Offset of field: uv_random_s__bindgen_ty_1__bindgen_ty_2::name"]
[::std::mem::offset_of!(uv_random_s__bindgen_ty_1__bindgen_ty_2, name) - 24usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_random_s__bindgen_ty_1"]
[::std::mem::size_of::<uv_random_s__bindgen_ty_1>() - 40usize];
["Alignment of uv_random_s__bindgen_ty_1"]
[::std::mem::align_of::<uv_random_s__bindgen_ty_1>() - 8usize];
["Offset of field: uv_random_s__bindgen_ty_1::io"]
[::std::mem::offset_of!(uv_random_s__bindgen_ty_1, io) - 0usize];
["Offset of field: uv_random_s__bindgen_ty_1::connect"]
[::std::mem::offset_of!(uv_random_s__bindgen_ty_1, connect) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_random_s"][::std::mem::size_of::<uv_random_s>() - 192usize];
["Alignment of uv_random_s"][::std::mem::align_of::<uv_random_s>() - 8usize];
["Offset of field: uv_random_s::data"][::std::mem::offset_of!(uv_random_s, data) - 0usize];
["Offset of field: uv_random_s::type_"][::std::mem::offset_of!(uv_random_s, type_) - 8usize];
["Offset of field: uv_random_s::reserved"]
[::std::mem::offset_of!(uv_random_s, reserved) - 16usize];
["Offset of field: uv_random_s::u"][::std::mem::offset_of!(uv_random_s, u) - 64usize];
["Offset of field: uv_random_s::next_req"]
[::std::mem::offset_of!(uv_random_s, next_req) - 104usize];
["Offset of field: uv_random_s::loop_"][::std::mem::offset_of!(uv_random_s, loop_) - 112usize];
["Offset of field: uv_random_s::status"][::std::mem::offset_of!(uv_random_s, status) - 120usize];
["Offset of field: uv_random_s::buf"][::std::mem::offset_of!(uv_random_s, buf) - 128usize];
["Offset of field: uv_random_s::buflen"][::std::mem::offset_of!(uv_random_s, buflen) - 136usize];
["Offset of field: uv_random_s::cb"][::std::mem::offset_of!(uv_random_s, cb) - 144usize];
["Offset of field: uv_random_s::work_req"]
[::std::mem::offset_of!(uv_random_s, work_req) - 152usize];
};
pub type uv_thread_cb =
::std::option::Option<unsafe extern "C" fn(arg: *mut ::std::os::raw::c_void)>;
impl uv_thread_create_flags {
pub const UV_THREAD_NO_FLAGS: uv_thread_create_flags = uv_thread_create_flags(0);
}
impl uv_thread_create_flags {
pub const UV_THREAD_HAS_STACK_SIZE: uv_thread_create_flags = uv_thread_create_flags(1);
}
#[repr(transparent)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct uv_thread_create_flags(pub ::std::os::raw::c_int);
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct uv_thread_options_s {
pub flags: ::std::os::raw::c_uint,
pub stack_size: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_thread_options_s"][::std::mem::size_of::<uv_thread_options_s>() - 16usize];
["Alignment of uv_thread_options_s"][::std::mem::align_of::<uv_thread_options_s>() - 8usize];
["Offset of field: uv_thread_options_s::flags"]
[::std::mem::offset_of!(uv_thread_options_s, flags) - 0usize];
["Offset of field: uv_thread_options_s::stack_size"]
[::std::mem::offset_of!(uv_thread_options_s, stack_size) - 8usize];
};
pub type uv_thread_options_t = uv_thread_options_s;
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_any_handle {
pub async_: uv_async_t,
pub check: uv_check_t,
pub fs_event: uv_fs_event_t,
pub fs_poll: uv_fs_poll_t,
pub handle: uv_handle_t,
pub idle: uv_idle_t,
pub pipe: uv_pipe_t,
pub poll: uv_poll_t,
pub prepare: uv_prepare_t,
pub process: uv_process_t,
pub stream: uv_stream_t,
pub tcp: uv_tcp_t,
pub timer: uv_timer_t,
pub tty: uv_tty_t,
pub udp: uv_udp_t,
pub signal: uv_signal_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_any_handle"][::std::mem::size_of::<uv_any_handle>() - 576usize];
["Alignment of uv_any_handle"][::std::mem::align_of::<uv_any_handle>() - 8usize];
["Offset of field: uv_any_handle::async_"]
[::std::mem::offset_of!(uv_any_handle, async_) - 0usize];
["Offset of field: uv_any_handle::check"][::std::mem::offset_of!(uv_any_handle, check) - 0usize];
["Offset of field: uv_any_handle::fs_event"]
[::std::mem::offset_of!(uv_any_handle, fs_event) - 0usize];
["Offset of field: uv_any_handle::fs_poll"]
[::std::mem::offset_of!(uv_any_handle, fs_poll) - 0usize];
["Offset of field: uv_any_handle::handle"]
[::std::mem::offset_of!(uv_any_handle, handle) - 0usize];
["Offset of field: uv_any_handle::idle"][::std::mem::offset_of!(uv_any_handle, idle) - 0usize];
["Offset of field: uv_any_handle::pipe"][::std::mem::offset_of!(uv_any_handle, pipe) - 0usize];
["Offset of field: uv_any_handle::poll"][::std::mem::offset_of!(uv_any_handle, poll) - 0usize];
["Offset of field: uv_any_handle::prepare"]
[::std::mem::offset_of!(uv_any_handle, prepare) - 0usize];
["Offset of field: uv_any_handle::process"]
[::std::mem::offset_of!(uv_any_handle, process) - 0usize];
["Offset of field: uv_any_handle::stream"]
[::std::mem::offset_of!(uv_any_handle, stream) - 0usize];
["Offset of field: uv_any_handle::tcp"][::std::mem::offset_of!(uv_any_handle, tcp) - 0usize];
["Offset of field: uv_any_handle::timer"][::std::mem::offset_of!(uv_any_handle, timer) - 0usize];
["Offset of field: uv_any_handle::tty"][::std::mem::offset_of!(uv_any_handle, tty) - 0usize];
["Offset of field: uv_any_handle::udp"][::std::mem::offset_of!(uv_any_handle, udp) - 0usize];
["Offset of field: uv_any_handle::signal"]
[::std::mem::offset_of!(uv_any_handle, signal) - 0usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_any_req {
pub req: uv_req_t,
pub connect: uv_connect_t,
pub write: uv_write_t,
pub shutdown: uv_shutdown_t,
pub udp_send: uv_udp_send_t,
pub fs: uv_fs_t,
pub work: uv_work_t,
pub getaddrinfo: uv_getaddrinfo_t,
pub getnameinfo: uv_getnameinfo_t,
pub random: uv_random_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_any_req"][::std::mem::size_of::<uv_any_req>() - 1368usize];
["Alignment of uv_any_req"][::std::mem::align_of::<uv_any_req>() - 8usize];
["Offset of field: uv_any_req::req"][::std::mem::offset_of!(uv_any_req, req) - 0usize];
["Offset of field: uv_any_req::connect"][::std::mem::offset_of!(uv_any_req, connect) - 0usize];
["Offset of field: uv_any_req::write"][::std::mem::offset_of!(uv_any_req, write) - 0usize];
["Offset of field: uv_any_req::shutdown"][::std::mem::offset_of!(uv_any_req, shutdown) - 0usize];
["Offset of field: uv_any_req::udp_send"][::std::mem::offset_of!(uv_any_req, udp_send) - 0usize];
["Offset of field: uv_any_req::fs"][::std::mem::offset_of!(uv_any_req, fs) - 0usize];
["Offset of field: uv_any_req::work"][::std::mem::offset_of!(uv_any_req, work) - 0usize];
["Offset of field: uv_any_req::getaddrinfo"]
[::std::mem::offset_of!(uv_any_req, getaddrinfo) - 0usize];
["Offset of field: uv_any_req::getnameinfo"]
[::std::mem::offset_of!(uv_any_req, getnameinfo) - 0usize];
["Offset of field: uv_any_req::random"][::std::mem::offset_of!(uv_any_req, random) - 0usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct uv_loop_s {
pub data: *mut ::std::os::raw::c_void,
pub active_handles: ::std::os::raw::c_uint,
pub handle_queue: uv__queue,
pub active_reqs: uv_loop_s__bindgen_ty_1,
pub internal_fields: *mut ::std::os::raw::c_void,
pub stop_flag: ::std::os::raw::c_uint,
pub iocp: HANDLE,
pub time: u64,
pub pending_reqs_tail: *mut uv_req_t,
pub endgame_handles: *mut uv_handle_t,
pub timer_heap: *mut ::std::os::raw::c_void,
pub prepare_handles: *mut uv_prepare_t,
pub check_handles: *mut uv_check_t,
pub idle_handles: *mut uv_idle_t,
pub next_prepare_handle: *mut uv_prepare_t,
pub next_check_handle: *mut uv_check_t,
pub next_idle_handle: *mut uv_idle_t,
pub poll_peer_sockets: [SOCKET; 4usize],
pub active_tcp_streams: ::std::os::raw::c_uint,
pub active_udp_streams: ::std::os::raw::c_uint,
pub timer_counter: u64,
pub wq: uv__queue,
pub wq_mutex: uv_mutex_t,
pub wq_async: uv_async_t,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union uv_loop_s__bindgen_ty_1 {
pub unused: *mut ::std::os::raw::c_void,
pub count: ::std::os::raw::c_uint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_loop_s__bindgen_ty_1"][::std::mem::size_of::<uv_loop_s__bindgen_ty_1>() - 8usize];
["Alignment of uv_loop_s__bindgen_ty_1"]
[::std::mem::align_of::<uv_loop_s__bindgen_ty_1>() - 8usize];
["Offset of field: uv_loop_s__bindgen_ty_1::unused"]
[::std::mem::offset_of!(uv_loop_s__bindgen_ty_1, unused) - 0usize];
["Offset of field: uv_loop_s__bindgen_ty_1::count"]
[::std::mem::offset_of!(uv_loop_s__bindgen_ty_1, count) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of uv_loop_s"][::std::mem::size_of::<uv_loop_s>() - 472usize];
["Alignment of uv_loop_s"][::std::mem::align_of::<uv_loop_s>() - 8usize];
["Offset of field: uv_loop_s::data"][::std::mem::offset_of!(uv_loop_s, data) - 0usize];
["Offset of field: uv_loop_s::active_handles"]
[::std::mem::offset_of!(uv_loop_s, active_handles) - 8usize];
["Offset of field: uv_loop_s::handle_queue"]
[::std::mem::offset_of!(uv_loop_s, handle_queue) - 16usize];
["Offset of field: uv_loop_s::active_reqs"]
[::std::mem::offset_of!(uv_loop_s, active_reqs) - 32usize];
["Offset of field: uv_loop_s::internal_fields"]
[::std::mem::offset_of!(uv_loop_s, internal_fields) - 40usize];
["Offset of field: uv_loop_s::stop_flag"][::std::mem::offset_of!(uv_loop_s, stop_flag) - 48usize];
["Offset of field: uv_loop_s::iocp"][::std::mem::offset_of!(uv_loop_s, iocp) - 56usize];
["Offset of field: uv_loop_s::time"][::std::mem::offset_of!(uv_loop_s, time) - 64usize];
["Offset of field: uv_loop_s::pending_reqs_tail"]
[::std::mem::offset_of!(uv_loop_s, pending_reqs_tail) - 72usize];
["Offset of field: uv_loop_s::endgame_handles"]
[::std::mem::offset_of!(uv_loop_s, endgame_handles) - 80usize];
["Offset of field: uv_loop_s::timer_heap"]
[::std::mem::offset_of!(uv_loop_s, timer_heap) - 88usize];
["Offset of field: uv_loop_s::prepare_handles"]
[::std::mem::offset_of!(uv_loop_s, prepare_handles) - 96usize];
["Offset of field: uv_loop_s::check_handles"]
[::std::mem::offset_of!(uv_loop_s, check_handles) - 104usize];
["Offset of field: uv_loop_s::idle_handles"]
[::std::mem::offset_of!(uv_loop_s, idle_handles) - 112usize];
["Offset of field: uv_loop_s::next_prepare_handle"]
[::std::mem::offset_of!(uv_loop_s, next_prepare_handle) - 120usize];
["Offset of field: uv_loop_s::next_check_handle"]
[::std::mem::offset_of!(uv_loop_s, next_check_handle) - 128usize];
["Offset of field: uv_loop_s::next_idle_handle"]
[::std::mem::offset_of!(uv_loop_s, next_idle_handle) - 136usize];
["Offset of field: uv_loop_s::poll_peer_sockets"]
[::std::mem::offset_of!(uv_loop_s, poll_peer_sockets) - 144usize];
["Offset of field: uv_loop_s::active_tcp_streams"]
[::std::mem::offset_of!(uv_loop_s, active_tcp_streams) - 176usize];
["Offset of field: uv_loop_s::active_udp_streams"]
[::std::mem::offset_of!(uv_loop_s, active_udp_streams) - 180usize];
["Offset of field: uv_loop_s::timer_counter"]
[::std::mem::offset_of!(uv_loop_s, timer_counter) - 184usize];
["Offset of field: uv_loop_s::wq"][::std::mem::offset_of!(uv_loop_s, wq) - 192usize];
["Offset of field: uv_loop_s::wq_mutex"][::std::mem::offset_of!(uv_loop_s, wq_mutex) - 208usize];
["Offset of field: uv_loop_s::wq_async"][::std::mem::offset_of!(uv_loop_s, wq_async) - 248usize];
};