Skip to main content

DeviceProvider

Trait DeviceProvider 

Source
pub trait DeviceProvider {
    type Ethernet: Device;
    type Loopback: Device;
    type PureIp: Device;
    type Blackhole: 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.

Source

type Blackhole: Device

The Device type for Blackhole devices.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl DeviceProvider for ()

This implementation is used in the for_any_device_id macro.

Implementors§