pub trait AsyncDmaTransfer: DmaTransfer {
type WaitFuture: Future<Output = Self::Buffer>;
// Required method
fn wait_async(self) -> Self::WaitFuture;
}Expand description
Trait representing an async DMA transfer token.
Required Associated Types§
Sourcetype WaitFuture: Future<Output = Self::Buffer>
type WaitFuture: Future<Output = Self::Buffer>
The future type returned by wait_async.
Required Methods§
Sourcefn wait_async(self) -> Self::WaitFuture
fn wait_async(self) -> Self::WaitFuture
Return a future that resolves when the DMA transfer completes.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".