Skip to main content

DmaDirection

Trait DmaDirection 

Source
pub trait DmaDirection:
    'static
    + Debug
    + Sealed {
    const CAN_READ_FROM_DEVICE: bool;
    const CAN_WRITE_TO_DEVICE: bool;
}
Expand description

DmaDirection limits the data flow direction of DmaStream and prevents users from reading and writing to DmaStream unexpectedly.

Required Associated Constants§

Source

const CAN_READ_FROM_DEVICE: bool

Whether the CPU can read data from the device.

Source

const CAN_WRITE_TO_DEVICE: bool

Whether the CPU can write data to the device.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§