Skip to main content

DeviceLayerStateTypes

Trait DeviceLayerStateTypes 

Source
pub trait DeviceLayerStateTypes: InstantContext + FilterBindingsTypes {
    type LoopbackDeviceState: Send + Sync + DeviceClassMatcher<Self::DeviceClass>;
    type EthernetDeviceState: Send + Sync + DeviceClassMatcher<Self::DeviceClass>;
    type PureIpDeviceState: Send + Sync + DeviceClassMatcher<Self::DeviceClass>;
    type BlackholeDeviceState: Send + Sync + DeviceClassMatcher<Self::DeviceClass>;
    type DeviceIdentifier: Send + Sync + Debug + Display + DeviceIdAndNameMatcher;
}
Expand description

Provides associated types used in the device layer.

Required Associated Types§

Source

type LoopbackDeviceState: Send + Sync + DeviceClassMatcher<Self::DeviceClass>

The state associated with loopback devices.

Source

type EthernetDeviceState: Send + Sync + DeviceClassMatcher<Self::DeviceClass>

The state associated with ethernet devices.

Source

type PureIpDeviceState: Send + Sync + DeviceClassMatcher<Self::DeviceClass>

The state associated with pure IP devices.

Source

type BlackholeDeviceState: Send + Sync + DeviceClassMatcher<Self::DeviceClass>

The state associated with blackhole devices.

Source

type DeviceIdentifier: Send + Sync + Debug + Display + DeviceIdAndNameMatcher

An opaque identifier that is available from both strong and weak device references.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<TimerId, Event, State> DeviceLayerStateTypes for FakeBindingsCtx<TimerId, Event, State, ()>
where TimerId: Debug + PartialEq + Clone + Send + Sync + 'static, Event: Debug + 'static, State: 'static,

Implementors§