Enum twizzler_driver::dma::SyncMode
source · pub enum SyncMode {
PreCpuToDevice,
PostCpuToDevice,
PreDeviceToCpu,
PostDeviceToCpu,
FullCoherence,
}
Expand description
Mode of syncing to apply when calling sync()
. These sync calls are unnecessary by default, and
should only be used with utmost care.
Variants§
PreCpuToDevice
Ensures coherence for the host to write to the device, ensuring that the memory is coherent from the perspective of the CPU before the host writes.
PostCpuToDevice
Ensures coherence for the host to write to the device, ensuring that the memory is coherent after the write.
PreDeviceToCpu
Ensures coherence for the device to write to the host, ensuring that the memory is coherent before the device performs an operation.
PostDeviceToCpu
Ensures coherence for the device to write to the host, ensuring that the memory is coherent after the device performs an operation.
FullCoherence
Ensures that memory is fully coherent.
Trait Implementations§
source§impl Ord for SyncMode
impl Ord for SyncMode
source§impl PartialEq<SyncMode> for SyncMode
impl PartialEq<SyncMode> for SyncMode
source§impl PartialOrd<SyncMode> for SyncMode
impl PartialOrd<SyncMode> for SyncMode
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SyncMode
impl Eq for SyncMode
impl StructuralEq for SyncMode
impl StructuralPartialEq for SyncMode
Auto Trait Implementations§
impl DeviceSync for SyncMode
impl ObjSafe for SyncMode
impl RefUnwindSafe for SyncMode
impl Send for SyncMode
impl Sync for SyncMode
impl Unpin for SyncMode
impl UnwindSafe for SyncMode
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