#[non_exhaustive]pub enum EffectKind {
BufferWrite,
Atomic,
HostIo,
GpuDispatch,
Barrier,
AsyncLoad,
Trap,
}Expand description
One concrete side-effect kind. Indexed by bit position into
EffectRow. #[non_exhaustive] so future kinds (collective
ops, persistent-storage writes, …) can land without breaking
pattern matches.
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.
BufferWrite
A buffer write (Node::Store, Node::AsyncStore).
Atomic
An atomic read-modify-write (Expr::Atomic).
HostIo
A host-visible I/O effect (e.g. printk via host bridge).
GpuDispatch
A nested GPU dispatch (Node::IndirectDispatch).
Barrier
A barrier or synchronization primitive (Node::Barrier { ordering: vyre_foundation::memory_model::MemoryOrdering::SeqCst }).
AsyncLoad
An async-load fetching from persistent / streaming storage (Node::AsyncLoad).
Trap
A trap or abort (Node::Trap).
Implementations§
Trait Implementations§
Source§impl Clone for EffectKind
impl Clone for EffectKind
Source§fn clone(&self) -> EffectKind
fn clone(&self) -> EffectKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EffectKind
Source§impl Debug for EffectKind
impl Debug for EffectKind
impl Eq for EffectKind
Source§impl Hash for EffectKind
impl Hash for EffectKind
Source§impl PartialEq for EffectKind
impl PartialEq for EffectKind
impl StructuralPartialEq for EffectKind
Auto Trait Implementations§
impl Freeze for EffectKind
impl RefUnwindSafe for EffectKind
impl Send for EffectKind
impl Sync for EffectKind
impl Unpin for EffectKind
impl UnsafeUnpin for EffectKind
impl UnwindSafe for EffectKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.