Struct usb2::endpoint::Descriptor[][src]

pub struct Descriptor {
    pub bEndpointAddress: Endpoint,
    pub ty: Type,
    pub max_packet_size: u16,
    pub bInterval: u8,
}

Endpoint descriptor

Fields

bEndpointAddress: Endpoint

Endpoint address

ty: Type

Endpoint type

max_packet_size: u16

Maximum packet size (must be less than 1 << 11)

bInterval: u8

Polling interval

Implementations

impl Descriptor[src]

pub const SIZE: u8[src]

The size of this descriptor on the wire

pub fn bytes(&self) -> [u8; 7][src]

Returns the wire representation of this descriptor

Auto Trait Implementations

impl Send for Descriptor

impl Sync for Descriptor

impl Unpin for Descriptor

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.