pub trait InterfaceProperties<DeviceClass> {
    // Required methods
    fn id_matches(&self, id: &NonZero<u64>) -> bool;
    fn name_matches(&self, name: &str) -> 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§

source

fn id_matches(&self, id: &NonZero<u64>) -> bool

Returns whether the provided ID matches the interface.

source

fn name_matches(&self, name: &str) -> bool

Returns whether the provided name matches the interface.

source

fn device_class_matches(&self, device_class: &DeviceClass) -> bool

Returns whether the provided device class matches the interface.

Implementors§

source§

impl<BT: DeviceLayerTypes> InterfaceProperties<<BT as FilterBindingsTypes>::DeviceClass> for DeviceId<BT>