[][src]Enum usb_device::endpoint::EndpointType

[]
#[repr(u8)]pub enum EndpointType {
    Control,
    Isochronous,
    Bulk,
    Interrupt,
}
[]

USB endpoint transfer type. The values of this enum can be directly cast into u8 to get the transfer bmAttributes transfer type bits.

Variants

Control
[]

Control endpoint. Used for device management. Only the host can initiate requests. Usually used only endpoint 0.

Isochronous
[]

Isochronous endpoint. Used for time-critical unreliable data. Not implemented yet.

Bulk
[]

Bulk endpoint. Used for large amounts of best-effort reliable data.

Interrupt
[]

Interrupt endpoint. Used for small amounts of time-critical reliable data.

Trait Implementations

impl Clone for EndpointType[src][+]

impl Copy for EndpointType[src]

impl Debug for EndpointType[src][+]

impl Eq for EndpointType[src]

impl PartialEq<EndpointType> for EndpointType[src][+]

impl StructuralEq for EndpointType[src]

impl StructuralPartialEq for EndpointType[src]

Auto Trait Implementations

impl Send for EndpointType

impl Sync for EndpointType

impl Unpin for EndpointType

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.