pub trait DmaTransfer {
type Buffer;
// Required methods
fn is_done(&self) -> bool;
fn wait(self) -> Self::Buffer;
}Expand description
An in-progress DMA transfer that holds the framebuffer until completion.
The buffer is inaccessible while this token is live — the only way to
get it back is to call wait, which blocks until
the hardware has finished reading.
Implementors for real hardware should cancel the DMA in their Drop
impl so that dropping a token without waiting is always safe.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".