[−][src]Struct usb_device::test_class::TestClass
Test USB class for testing USB driver implementations. Supports various endpoint types and requests for testing USB peripheral drivers on actual hardware.
Implementations
impl<B: UsbBus, '_> TestClass<'_, B>
[src][−]
pub fn new(alloc: &UsbBusAllocator<B>) -> TestClass<'_, B>
[src][−]
Creates a new TestClass.
pub fn make_device<'a, 'b>(
&'a self,
usb_bus: &'b UsbBusAllocator<B>
) -> UsbDevice<'b, B>
[src][−]
&'a self,
usb_bus: &'b UsbBusAllocator<B>
) -> UsbDevice<'b, B>
Convenience method to create a UsbDevice that is configured correctly for TestClass.
pub fn poll(&mut self)
[src][−]
Must be called after polling the UsbDevice.
Trait Implementations
Auto Trait Implementations
impl<'a, B> Send for TestClass<'a, B>
impl<'a, B> Sync for TestClass<'a, B>
impl<'a, B> Unpin for TestClass<'a, B>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,