pub trait SocketControlMessageExt: 'static {
    // Required methods
    fn level(&self) -> i32;
    fn msg_type(&self) -> i32;
    fn size(&self) -> usize;
}
Expand description

Required Methods§

source

fn level(&self) -> i32

Returns the “level” (i.e. the originating protocol) of the control message. This is often SOL_SOCKET.

Returns

an integer describing the level

source

fn msg_type(&self) -> i32

Returns the protocol specific type of the control message. For instance, for UNIX fd passing this would be SCM_RIGHTS.

Returns

an integer describing the type of control message

source

fn size(&self) -> usize

Returns the space required for the control message, not including headers or alignment.

Returns

The number of bytes required.

Implementors§