gio::prelude

Trait SocketControlMessageExt

Source
pub trait SocketControlMessageExt: IsA<SocketControlMessage> + 'static {
    // Provided methods
    fn level(&self) -> i32 { ... }
    fn msg_type(&self) -> i32 { ... }
    fn size(&self) -> usize { ... }
}
Expand description

Provided 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§