[][src]Enum usbd_mass_storage::InterfaceProtocol

pub enum InterfaceProtocol {
    CbiWithCCInterrupt,
    CbiNoCCInterrupt,
    BulkOnlyTransport,
    Uas,
    VendorSpecific,
}

This specifies the protocol of the USB interface

Section 3 USB Mass Storage Class Overview

Variants

CbiWithCCInterrupt

USB Mass Storage Class Control/Bulk/Interrupt (CBI) Transport (with command completion interrupt)

CbiNoCCInterrupt

USB Mass Storage Class Control/Bulk/Interrupt (CBI) Transport (with no command completion interrupt)

BulkOnlyTransport

USB Mass Storage Class Bulk-Only (BBB) Transport

Uas

Allocated by USB-IF for UAS. UAS is defined outside of USB

VendorSpecific

Specific to device vendor. De facto use

Methods

impl InterfaceProtocol[src]

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

pub fn from_primitive(num: u8) -> Result<Self, Error>[src]

Trait Implementations

impl Clone for InterfaceProtocol[src]

impl Copy for InterfaceProtocol[src]

impl Debug for InterfaceProtocol[src]

impl Eq for InterfaceProtocol[src]

impl PackedBytes<[u8; 1]> for InterfaceProtocol[src]

type Error = Error

impl PackedSize for InterfaceProtocol[src]

impl PartialEq<InterfaceProtocol> for InterfaceProtocol[src]

impl StructuralEq for InterfaceProtocol[src]

impl StructuralPartialEq for InterfaceProtocol[src]

Auto Trait Implementations

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> Same<T> for T[src]

type Output = T

Should always be Self

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.