pub trait SocketControlMessageExt: IsA<SocketControlMessage> + 'static {
// Provided methods
fn level(&self) -> i32 { ... }
fn msg_type(&self) -> i32 { ... }
fn size(&self) -> usize { ... }
}
Expand description
Trait containing all SocketControlMessage
methods.
§Implementors
Provided Methods§
Sourcefn level(&self) -> i32
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
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.