pub trait MatcherBindingsTypes {
type DeviceClass: Clone + Debug;
type BindingsPacketMatcher: Clone + Debug + InspectableValue;
}Expand description
Trait defining required types for matchers provided by bindings.
Allows rules that match on device class to be installed, storing the
MatcherBindingsTypes::DeviceClass type at rest, while allowing Netstack3
Core to have Bindings provide the type since it is platform-specific.
Required Associated Types§
Sourcetype DeviceClass: Clone + Debug
type DeviceClass: Clone + Debug
The device class type for devices installed in the netstack.
Sourcetype BindingsPacketMatcher: Clone + Debug + InspectableValue
type BindingsPacketMatcher: Clone + Debug + InspectableValue
The type used to represent a custom filter matcher.
Clone is required because filter validator clones rules when
installing them.