pub struct AsyncOpRef {
pub operation_id: OperationId,
pub wait_policy: WaitPolicy,
}Expand description
Typed async operation reference carrying an operation ID and its wait policy.
Replaces raw OperationId sequences in the TurnExecution machine state to
enable barrier-aware scheduling. Only Barrier ops block the turn boundary;
Detached ops are recorded but do not gate ToolCallsResolved.
Fields§
§operation_id: OperationId§wait_policy: WaitPolicyImplementations§
Source§impl AsyncOpRef
impl AsyncOpRef
Sourcepub fn barrier(operation_id: OperationId) -> Self
pub fn barrier(operation_id: OperationId) -> Self
Create a barrier op ref — blocks the turn boundary until resolved.
Sourcepub fn detached(operation_id: OperationId) -> Self
pub fn detached(operation_id: OperationId) -> Self
Create a detached op ref — runs independently, does not block the turn.
Trait Implementations§
Source§impl Clone for AsyncOpRef
impl Clone for AsyncOpRef
Source§fn clone(&self) -> AsyncOpRef
fn clone(&self) -> AsyncOpRef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AsyncOpRef
impl Debug for AsyncOpRef
Source§impl<'de> Deserialize<'de> for AsyncOpRef
impl<'de> Deserialize<'de> for AsyncOpRef
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
Source§impl Hash for AsyncOpRef
impl Hash for AsyncOpRef
Source§impl PartialEq for AsyncOpRef
impl PartialEq for AsyncOpRef
Source§impl Serialize for AsyncOpRef
impl Serialize for AsyncOpRef
impl Eq for AsyncOpRef
impl StructuralPartialEq for AsyncOpRef
Auto Trait Implementations§
impl Freeze for AsyncOpRef
impl RefUnwindSafe for AsyncOpRef
impl Send for AsyncOpRef
impl Sync for AsyncOpRef
impl Unpin for AsyncOpRef
impl UnsafeUnpin for AsyncOpRef
impl UnwindSafe for AsyncOpRef
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.