pub trait PacketSocketProvider {
    type Sock: Socket<Mac>;

    // Required method
    async fn get_packet_socket(&self) -> Result<Self::Sock, SocketError>;
}
Expand description

Provides access to AF_PACKET sockets.

Required Associated Types§

source

type Sock: Socket<Mac>

The type of sockets provided by this PacketSocketProvider.

Required Methods§

source

async fn get_packet_socket(&self) -> Result<Self::Sock, SocketError>

Gets a packet socket bound to the device on which the DHCP client protocol is being performed. The packet socket should already be bound to the appropriate device and protocol number.

Object Safety§

This trait is not object safe.

Implementors§