[][src]Struct usb_host::setup::RequestType

#[repr(C)]
pub struct RequestType(_);

Methods

impl RequestType[src]

pub fn recipient(self) -> Result<RequestRecipient, &'static str>[src]

pub fn set_recipient(&mut self, v: RequestRecipient)[src]

pub fn kind(self) -> Result<RequestKind, &'static str>[src]

pub fn set_kind(&mut self, v: RequestKind)[src]

pub fn direction(self) -> Result<RequestDirection, &'static str>[src]

pub fn set_direction(&mut self, v: RequestDirection)[src]

Trait Implementations

impl From<(RequestDirection, RequestKind, RequestRecipient)> for RequestType[src]

impl Debug for RequestType[src]

impl PartialEq<RequestType> for RequestType[src]

impl Copy for RequestType[src]

impl Clone for RequestType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for 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> Into<U> for T where
    U: From<T>, 
[src]

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.

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

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

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