libc/new/glibc/socket/sys/
socket.rs1pub use crate::new::glibc::bits::socket::*;
4use crate::prelude::*;
5
6#[allow(deprecated)]
pub const SHUT_RDWR: c_int =
{
#[allow(unused_variables)]
let r = SHUT_WR + 1;
r
};c_enum! {
7 #[repr(c_int)]
8 enum #anon {
9 pub SHUT_RD = 0,
10 pub SHUT_WR,
11 pub SHUT_RDWR,
12 }
13}
14
15#[repr(C)]
#[allow(deprecated)]
pub struct mmsghdr {
pub msg_hdr: crate::msghdr,
pub msg_len: c_uint,
}
#[automatically_derived]#[doc(hidden)]#[allow(deprecated)]
unsafe impl ::core::clone::TrivialClone for mmsghdr { }
#[automatically_derived]#[allow(deprecated)]
impl ::core::clone::Clone for mmsghdr {
#[inline]
#[rustc_trivial_field_reads]
fn clone(&self) -> Self {
let _: ::core::clone::AssertParamIsClone<crate::msghdr>;
let _: ::core::clone::AssertParamIsClone<c_uint>;
*self
}
}
#[automatically_derived]#[allow(deprecated)]
impl ::core::marker::Copy for mmsghdr { }
#[automatically_derived]#[allow(deprecated)]
impl ::core::fmt::Debug for mmsghdr {
#[inline]
#[rustc_trivial_field_reads]
fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
::core::fmt::Formatter::debug_struct_field2_finish(f,
"mmsghdr msg_hdr msg_len", &self.msg_hdr, &&self.msg_len)
}
}s! {
16 pub struct mmsghdr {
17 pub msg_hdr: crate::msghdr,
18 pub msg_len: c_uint,
19 }
20}