embassy-usb-driver

Crates

git

Versions

default

Flavors

Direction

Trait Direction 

Source
pub trait Direction: Sealed {
    // Required methods
    fn is_in() -> bool;
    fn is_out() -> bool;
}
Expand description

Marker trait for the transfer direction of a channel.

Required Methods§

Source

fn is_in() -> bool

Returns true if this direction supports IN (device-to-host) transfers.

Source

fn is_out() -> bool

Returns true if this direction supports OUT (host-to-device) transfers.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§