Struct lrs::socket::cmsg::CMsgBuf

A buffer for creating control messages.

Syntax

struct CMsgBuf<Heap = Libc>
    where Heap: Allocator,
{
    /* private fields */
}

Static methods

NameDescription
buffered

Creates a new CMsgBuf backed by borrowed memory.

new

Creates a new CMsgBuf backed by allocated memory.

Methods

ReceiverNameDescription
&mut selfcredentials

Adds process credentials to the buffer.

&mut selffds

Adds a message containing file descriptors to the buffer.

&selfiter

Creates an iterator over the messages.

&selflen

Returns the size currently occupied by the create messages.

Trait implementations

NameDescription
Drop

Objects with a destructor.