pub trait DeviceWithName {
// Required method
fn name_matches(&self, name: &str) -> bool;
}
Expand description
Allows the user to match a device with a name.
Required Methods§
Sourcefn name_matches(&self, name: &str) -> bool
fn name_matches(&self, name: &str) -> bool
Returns whether the provided name matches the interface.