Expand description
Host class driver traits and shared error types.
A host class driver does two things:
HostClass::probeinspects the enumerated device and its configuration descriptor and returns a small, ownedInfovalue when the class is present.HostClass::openallocates the pipes described byInfoand performs any class-specific setup (for exampleSET_INTERFACE).
The split keeps matching synchronous and side-effect free while allowing opening to be async.
Re-exports§
pub use super::descriptor::ClassCode;pub use super::descriptor::ClassMatch;
Enums§
- Class
Error - Shared error type for host class drivers.
Traits§
- Host
Class - A host class driver that can be opened from an enumerated device.