Trait gio::prelude::SocketControlMessageExt

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

Provided Methods§


fn level(&self) -> i32

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


an integer describing the level


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.


an integer describing the type of control message


fn size(&self) -> usize

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


The number of bytes required.

Object Safety§

This trait is not object safe.