#[repr(C)]pub enum Direction {
ToDevice = 0,
FromDevice = 1,
Bidirectional = 2,
}Expand description
DMA 传输方向
参考 Linux enum dma_data_direction
Variants§
ToDevice = 0
数据从 CPU 传输到设备 (DMA_TO_DEVICE)
FromDevice = 1
数据从设备传输到 CPU (DMA_FROM_DEVICE)
Bidirectional = 2
双向传输 (DMA_BIDIRECTIONAL)
Trait Implementations§
impl Copy for Direction
impl Eq for Direction
impl StructuralPartialEq for Direction
Auto Trait Implementations§
impl Freeze for Direction
impl RefUnwindSafe for Direction
impl Send for Direction
impl Sync for Direction
impl Unpin for Direction
impl UnwindSafe for Direction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more