pub enum SpawnHandleConcurrency {
ImmutableShare,
CopyOnWrite,
SynchronizedMutation,
Reject,
}Expand description
Declares how provider-owned GPU handles may cross async spawn boundaries.
This is a runtime/provider policy surface (not a semantic type fact) used by VM/runtime spawn handling to prevent unsynchronized device-handle races.
Variants§
Provider supports immutable sharing of handle-backed values across spawned tasks.
CopyOnWrite
Provider supports copy-on-write semantics when spawned and parent tasks diverge.
SynchronizedMutation
Provider supports synchronized mutation for shared handles.
Reject
Provider rejects spawned sharing of raw handles.
Implementations§
Trait Implementations§
Source§impl Clone for SpawnHandleConcurrency
impl Clone for SpawnHandleConcurrency
Source§fn clone(&self) -> SpawnHandleConcurrency
fn clone(&self) -> SpawnHandleConcurrency
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 SpawnHandleConcurrency
Source§impl Debug for SpawnHandleConcurrency
impl Debug for SpawnHandleConcurrency
Source§impl<'de> Deserialize<'de> for SpawnHandleConcurrency
impl<'de> Deserialize<'de> for SpawnHandleConcurrency
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SpawnHandleConcurrency
Source§impl PartialEq for SpawnHandleConcurrency
impl PartialEq for SpawnHandleConcurrency
Source§fn eq(&self, other: &SpawnHandleConcurrency) -> bool
fn eq(&self, other: &SpawnHandleConcurrency) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SpawnHandleConcurrency
impl Serialize for SpawnHandleConcurrency
impl StructuralPartialEq for SpawnHandleConcurrency
Auto Trait Implementations§
impl Freeze for SpawnHandleConcurrency
impl RefUnwindSafe for SpawnHandleConcurrency
impl Send for SpawnHandleConcurrency
impl Sync for SpawnHandleConcurrency
impl Unpin for SpawnHandleConcurrency
impl UnsafeUnpin for SpawnHandleConcurrency
impl UnwindSafe for SpawnHandleConcurrency
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