Embassy
embassy-usb-driver

Crates

git

Versions

default

Flavors

Trait embassy_usb_driver::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.

Object Safety§

This trait is not object safe.

Implementors§