Trait netstack3_core::filter::InterfaceProperties
pub trait InterfaceProperties<DeviceClass>: DeviceWithName {
// Required methods
fn id_matches(&self, id: &NonZero<u64>) -> bool;
fn device_class_matches(&self, device_class: &DeviceClass) -> bool;
}
Expand description
Allows filtering code to match on properties of an interface (ID, name, and device class) without Netstack3 Core (or Bindings, in the case of the device class) having to specifically expose that state.
Required Methods§
fn id_matches(&self, id: &NonZero<u64>) -> bool
fn id_matches(&self, id: &NonZero<u64>) -> bool
Returns whether the provided ID matches the interface.
fn device_class_matches(&self, device_class: &DeviceClass) -> bool
fn device_class_matches(&self, device_class: &DeviceClass) -> bool
Returns whether the provided device class matches the interface.