netstack3_core::device

Trait DeviceProvider

Source
pub trait DeviceProvider {
    type Ethernet: Device;
    type Loopback: Device;
    type PureIp: Device;
}
Expand description

Provides the Device type for each device domain.

Required Associated Types§

Source

type Ethernet: Device

The Device type for Ethernet devices.

Source

type Loopback: Device

The Device type for Loopback devices.

Source

type PureIp: Device

The Device type for pure IP devices.

Implementations on Foreign Types§

Source§

impl DeviceProvider for ()

This implementation is used in the for_any_device_id macro.

Implementors§