pub struct WorkflowTracker { /* private fields */ }Expand description
Multi-workflow tracker
Implementations§
Source§impl WorkflowTracker
impl WorkflowTracker
Sourcepub fn begin_workflow(&self, workflow_id: &str, current_lsn: u64)
pub fn begin_workflow(&self, workflow_id: &str, current_lsn: u64)
Begin a new workflow
Sourcepub fn record_write(&self, workflow_id: &str, write_lsn: u64)
pub fn record_write(&self, workflow_id: &str, write_lsn: u64)
Record a write in a workflow
Sourcepub fn get_read_requirement(&self, workflow_id: &str) -> Option<u64>
pub fn get_read_requirement(&self, workflow_id: &str) -> Option<u64>
Get read LSN requirement for a workflow
Sourcepub fn end_workflow(&self, workflow_id: &str)
pub fn end_workflow(&self, workflow_id: &str)
End a workflow
Sourcepub fn workflow_count(&self) -> usize
pub fn workflow_count(&self) -> usize
Get active workflow count
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WorkflowTracker
impl !RefUnwindSafe for WorkflowTracker
impl Send for WorkflowTracker
impl Sync for WorkflowTracker
impl Unpin for WorkflowTracker
impl UnsafeUnpin for WorkflowTracker
impl UnwindSafe for WorkflowTracker
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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