[−][src]Enum usb_device::UsbDirection
Direction of USB traffic. Note that in the USB standard the direction is always indicated from the perspective of the host, which is backward for devices, but the standard directions are used for consistency.
The values of the enum also match the direction bit used in endpoint addresses and control request types.
Variants
Host to device (OUT)
Device to host (IN)
Trait Implementations
impl Clone for UsbDirection
[src]
fn clone(&self) -> UsbDirection
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for UsbDirection
[src]
impl Debug for UsbDirection
[src]
impl Eq for UsbDirection
[src]
impl From<u8> for UsbDirection
[src]
impl PartialEq<UsbDirection> for UsbDirection
[src]
fn eq(&self, other: &UsbDirection) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for UsbDirection
[src]
impl StructuralPartialEq for UsbDirection
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,