Skip to main content

DmaTransfer

Trait DmaTransfer 

Source
pub trait DmaTransfer {
    type Buffer;

    // Required methods
    fn is_done(&self) -> bool;
    fn wait(self) -> Self::Buffer;
}
Expand description

Trait representing a DMA transfer token.

Required Associated Types§

Source

type Buffer

The buffer type returned when the transfer finishes.

Required Methods§

Source

fn is_done(&self) -> bool

Returns true if the DMA transfer has completed.

Source

fn wait(self) -> Self::Buffer

Block until the transfer completes, recovering ownership of the buffer.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§