#[non_exhaustive]pub enum MemoryOperation {
Wait32 {
address: DevicePtr,
value: u32,
condition: WaitCondition,
flags: WaitFlags,
},
Wait64 {
address: DevicePtr,
value: u64,
condition: WaitCondition,
flags: WaitFlags,
},
Write32 {
address: DevicePtr,
value: u32,
},
Write64 {
address: DevicePtr,
value: u64,
},
Barrier(MemoryBarrierScope),
FlushRemoteWrites,
}Expand description
One ordered memory operation; addresses are borrowed and confer no access permission.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Wait32
Waits for a 32-bit device word to satisfy the selected comparison.
Fields
§
condition: WaitConditionComparison of the current device word against value.
Wait64
Waits for a 64-bit device word to satisfy the selected comparison.
Fields
§
condition: WaitConditionComparison of the current device word against value.
Write32
Writes a 32-bit device word with the native stream memory fence enabled.
Fields
Write64
Writes a 64-bit device word with the native stream memory fence enabled.
Fields
Barrier(MemoryBarrierScope)
Enqueues a memory barrier with the selected scope.
FlushRemoteWrites
Flushes outstanding remote writes so they are visible to downstream device work.
Trait Implementations§
Source§impl Clone for MemoryOperation
impl Clone for MemoryOperation
impl Copy for MemoryOperation
Auto Trait Implementations§
impl !Send for MemoryOperation
impl !Sync for MemoryOperation
impl Forget for MemoryOperation
impl Freeze for MemoryOperation
impl Move for MemoryOperation
impl RefUnwindSafe for MemoryOperation
impl Unpin for MemoryOperation
impl UnsafeUnpin for MemoryOperation
impl UnwindSafe for MemoryOperation
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