Skip to main content

Ext

Trait Ext 

Source
pub trait Ext {
    type Encoder<'a>: Encoder
       where Self: 'a;

    // Required methods
    fn header(&self) -> Option<(Header<Handle>, AncillaryData)>;
    fn cmsg_encoder(&mut self) -> Self::Encoder<'_>;
    fn remote_address(&self) -> Option<SocketAddress>;
    fn set_remote_address(&mut self, remote_address: &SocketAddress);
}

Required Associated Types§

Source

type Encoder<'a>: Encoder where Self: 'a

Required Methods§

Source

fn header(&self) -> Option<(Header<Handle>, AncillaryData)>

Source

fn cmsg_encoder(&mut self) -> Self::Encoder<'_>

Source

fn remote_address(&self) -> Option<SocketAddress>

Source

fn set_remote_address(&mut self, remote_address: &SocketAddress)

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§

Source§

impl Ext for msghdr

Source§

type Encoder<'a> = MsghdrEncoder<'a>