diff options
Diffstat (limited to 'src/sys/socket/mod.rs')
-rw-r--r-- | src/sys/socket/mod.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sys/socket/mod.rs b/src/sys/socket/mod.rs index 5c4f19b2..beef3db8 100644 --- a/src/sys/socket/mod.rs +++ b/src/sys/socket/mod.rs @@ -320,6 +320,7 @@ cfg_if! { /// let cmsg: CmsgSpace<([RawFd; 3], CmsgSpace<[RawFd; 2]>)> = CmsgSpace::new(); /// ``` #[repr(C)] +#[allow(missing_debug_implementations)] pub struct CmsgSpace<T> { _hdr: cmsghdr, _pad: [align_of_cmsg_data; 0], @@ -335,6 +336,7 @@ impl<T> CmsgSpace<T> { } } +#[allow(missing_debug_implementations)] pub struct RecvMsg<'a> { // The number of bytes received. pub bytes: usize, @@ -354,6 +356,7 @@ impl<'a> RecvMsg<'a> { } } +#[allow(missing_debug_implementations)] pub struct CmsgIterator<'a> { buf: &'a [u8], next: usize, @@ -420,6 +423,7 @@ impl<'a> Iterator for CmsgIterator<'a> { /// A type-safe wrapper around a single control message. More types may /// be added to this enum; do not exhaustively pattern-match it. /// [Further reading](http://man7.org/linux/man-pages/man3/cmsg.3.html) +#[allow(missing_debug_implementations)] pub enum ControlMessage<'a> { /// A message of type `SCM_RIGHTS`, containing an array of file /// descriptors passed between processes. @@ -501,6 +505,7 @@ pub enum ControlMessage<'a> { // An opaque structure used to prevent cmsghdr from being a public type #[doc(hidden)] +#[allow(missing_debug_implementations)] pub struct UnknownCmsg<'a>(&'a cmsghdr, &'a [u8]); // Round `len` up to meet the platform's required alignment for |