Trait Descriptor

Source
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.

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.

Implementors§