Struct usbd_webusb::WebUsb[][src]

pub struct WebUsb<B: UsbBus> { /* fields omitted */ }

WebUSB class

Implementations

impl<B: UsbBus> WebUsb<B>[src]

pub fn new(
    _alloc: &UsbBusAllocator<B>,
    scheme: u8,
    url: &'static str
) -> WebUsb<B>
[src]

Creates new WebUSB class with provided url and scheme.

pub fn vendor_code(&self) -> u8[src]

Gets vendor code that is used for polling URL descriptor

pub fn set_vendor_code(mut self: Self, vendor_code: u8) -> Self[src]

Sets vendor code that is used for polling URL descriptor

Trait Implementations

impl<B: UsbBus> UsbClass<B> for WebUsb<B>[src]

Auto Trait Implementations

impl<B> Send for WebUsb<B> where
    B: Send
[src]

impl<B> Sync for WebUsb<B>[src]

impl<B> Unpin for WebUsb<B> where
    B: Unpin
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.