Struct nix::sys::socket::CmsgSpace [−][src]
#[repr(C)]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:
use std::os::unix::io::RawFd; use nix::sys::socket::CmsgSpace; let cmsg: CmsgSpace<([RawFd; 3], CmsgSpace<[RawFd; 2]>)> = CmsgSpace::new();
Methods
impl<T> CmsgSpace<T>[src]
impl<T> CmsgSpace<T>pub fn new() -> Self[src]
pub fn new() -> SelfCreate a CmsgSpace