pub trait Descriptor {
    // Required method
    fn descriptor_type() -> DescriptorType;
}
Expand description

Trait describing USB descriptors.

Required Methods§

source

fn descriptor_type() -> DescriptorType

Get the expected bDescriptorType value for this type of descriptor.

Object Safety§

This trait is not object safe.

Implementors§