[][src]Struct usb_device::descriptor::BosWriter

pub struct BosWriter<'w, 'a: 'w> { /* fields omitted */ }

A writer for Binary Object Store descriptor.

Implementations

impl<'w, 'a: 'w> BosWriter<'w, 'a>[src]

pub fn capability(&mut self, capability_type: u8, data: &[u8]) -> Result<()>[src]

Writes capability descriptor to a BOS

Arguments

  • capability_type - Type of a capability
  • data - Binary data of the descriptor

Auto Trait Implementations

impl<'w, 'a> Send for BosWriter<'w, 'a>

impl<'w, 'a> Sync for BosWriter<'w, 'a>

impl<'w, 'a> Unpin for BosWriter<'w, 'a> where
    'a: 'w, 

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.