Struct nix::sys::socket::CmsgSpace [] [src]

pub struct CmsgSpace<T> { /* fields omitted */ }

A structure used to make room in a cmsghdr passed to recvmsg. The size and alignment match that of a cmsghdr followed by a T, but the fields are not accessible, as the actual types will change on a call to recvmsg.

To make room for multiple messages, nest the type parameter with tuples, e.g. let cmsg: CmsgSpace<([RawFd; 3], CmsgSpace<[RawFd; 2]>)> = CmsgSpace::new();

Methods

impl<T> CmsgSpace<T>
[src]

Create a CmsgSpace. The structure is used only for space, so the fields are uninitialized.