Struct AtomicFlowHandle
pub struct AtomicFlowHandle { /* private fields */ }Expand description
Shared control handle for one atomic root-to-intercall execution flow.
The root lyquid resolves it to a flow outcome, while blue inter-calls use the same handle to wait for that outcome and report when their local staged work is fully finalized.
Implementations§
§impl AtomicFlowHandle
impl AtomicFlowHandle
pub fn new(id: u64) -> Self
pub fn id(&self) -> u64
pub fn commit(&self)
pub fn abort(&self)
pub fn mark_blue(&self, lyquid: LyquidID)
pub fn blue_done(&self, lyquid: LyquidID)
pub fn fail(&self, lyquid: LyquidID)
pub async fn wait_outcome(&self) -> AtomicFlowOutcome
pub async fn wait_all_done(&self) -> AtomicFlowOutcome
pub fn touched_lyquids(&self) -> Vec<LyquidID>
Trait Implementations§
§impl Clone for AtomicFlowHandle
impl Clone for AtomicFlowHandle
§fn clone(&self) -> AtomicFlowHandle
fn clone(&self) -> AtomicFlowHandle
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 moreAuto Trait Implementations§
impl Freeze for AtomicFlowHandle
impl !RefUnwindSafe for AtomicFlowHandle
impl Send for AtomicFlowHandle
impl Sync for AtomicFlowHandle
impl Unpin for AtomicFlowHandle
impl UnsafeUnpin for AtomicFlowHandle
impl !UnwindSafe for AtomicFlowHandle
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more