pub type UsbResult<T> = Result<T, UsbError>;
#[derive(Clone, Copy, PartialEq, Eq, Debug)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[non_exhaustive]
pub enum UsbError {
WouldBlock,
BufferOverflow,
InvalidEndpoint,
EndpointOverflow,
EndpointMemoryOverflow,
Unsupported,
InvalidState,
ParseError,
}