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

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]

pub fn new() -> Self[src]

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

Auto Trait Implementations

impl<T> Send for CmsgSpace<T> where
    T: Send

impl<T> Sync for CmsgSpace<T> where
    T: Sync

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]