pub trait ClassMatch {
const NAME: &'static str;
const CODE: Option<ClassCode> = None;
// Required method
fn matches(iface: &InterfaceDescriptor) -> bool;
}Expand description
Pure, synchronous interface matching for a host class.
Used by ConfigurationDescriptorChain::find_interface and
ConfigurationDescriptorChain::find_interfaces. Vendor-specific classes
can match on interface_class == 0xff here and check VID/PID in
HostClass::probe.
Required Associated Constants§
Provided Associated Constants§
Required Methods§
Sourcefn matches(iface: &InterfaceDescriptor) -> bool
fn matches(iface: &InterfaceDescriptor) -> bool
Return true when iface belongs to this class.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".