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§
Sourceconst CAN_READ_FROM_DEVICE: bool
const CAN_READ_FROM_DEVICE: bool
Whether the CPU can read data from the device.
Sourceconst CAN_WRITE_TO_DEVICE: bool
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".