embassy-usb-driver

Crates

git

Versions

default

Flavors

embassy_usb_driver

Trait Endpoint

Source
pub trait Endpoint {
    // Required methods
    fn info(&self) -> &EndpointInfo;
    async fn wait_enabled(&mut self);
}
Expand description

Endpoint trait, common for OUT and IN.

Required Methods§

Source

fn info(&self) -> &EndpointInfo

Get the endpoint address

Source

async fn wait_enabled(&mut self)

Wait for the endpoint to be enabled.

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§