pub trait DeviceIdAndNameMatcher {
// Required methods
fn id_matches(&self, id: &NonZeroU64) -> bool;
fn name_matches(&self, name: &str) -> bool;
}
Expand description
Provides matching functionality for the ID and name of a device installed in the netstack.
Required Methods§
sourcefn id_matches(&self, id: &NonZeroU64) -> bool
fn id_matches(&self, id: &NonZeroU64) -> bool
Returns whether the provided ID matches the ID of the device.
sourcefn name_matches(&self, name: &str) -> bool
fn name_matches(&self, name: &str) -> bool
Returns whether the provided name matches the name of the device.