pub enum ProviderWorkspaceReusePolicy {
OverwriteBeforeRead,
ZeroBeforeUse,
Preserve,
}Expand description
Content contract applied whenever an existing physical workspace is reused.
The policy is deliberately independent from allocation lifetime. A lane may retain the same invocation-scoped physical extent across many submissions, so allocation-time initialization alone cannot define what a provider may observe on entry.
Variants§
OverwriteBeforeRead
The provider writes every byte it may read during the invocation.
ZeroBeforeUse
Core zeroes the complete logical workspace before provider commands.
Preserve
Existing bytes remain meaningful for the declared workspace scope.
Trait Implementations§
Source§impl Clone for ProviderWorkspaceReusePolicy
impl Clone for ProviderWorkspaceReusePolicy
Source§fn clone(&self) -> ProviderWorkspaceReusePolicy
fn clone(&self) -> ProviderWorkspaceReusePolicy
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 ProviderWorkspaceReusePolicy
Source§impl Debug for ProviderWorkspaceReusePolicy
impl Debug for ProviderWorkspaceReusePolicy
Source§impl<'de> Deserialize<'de> for ProviderWorkspaceReusePolicy
impl<'de> Deserialize<'de> for ProviderWorkspaceReusePolicy
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 ProviderWorkspaceReusePolicy
impl StructuralPartialEq for ProviderWorkspaceReusePolicy
Auto Trait Implementations§
impl Freeze for ProviderWorkspaceReusePolicy
impl RefUnwindSafe for ProviderWorkspaceReusePolicy
impl Send for ProviderWorkspaceReusePolicy
impl Sync for ProviderWorkspaceReusePolicy
impl Unpin for ProviderWorkspaceReusePolicy
impl UnsafeUnpin for ProviderWorkspaceReusePolicy
impl UnwindSafe for ProviderWorkspaceReusePolicy
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