embassy-usb-driver

Crates

git

Versions

default

Flavors

embassy_usb_driver

Trait EndpointIn

Source
pub trait EndpointIn: Endpoint {
    // Required method
    async fn write(&mut self, buf: &[u8]) -> Result<(), EndpointError>;
}
Expand description

IN Endpoint trait.

Required Methods§

Source

async fn write(&mut self, buf: &[u8]) -> Result<(), EndpointError>

Write a single packet of data to the endpoint.

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§