pub trait Descriptor {
// Required method
fn descriptor_type() -> DescriptorType;
}Expand description
Trait describing USB descriptors.
Required Methods§
Sourcefn descriptor_type() -> DescriptorType
fn descriptor_type() -> DescriptorType
Get the expected bDescriptorType value for this type of descriptor.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.