pub struct ExecutionTracker { /* private fields */ }
Expand description
Execution tracking and monitoring
Implementations§
Source§impl ExecutionTracker
impl ExecutionTracker
pub fn new() -> Self
pub fn track_assignment(&mut self, assignment: TaskAssignment) -> CoreResult<()>
pub fn mark_task_complete( &mut self, taskid: &TaskId, execution_time: Duration, ) -> CoreResult<()>
pub fn mark_task_failed( &mut self, taskid: &TaskId, error: String, ) -> CoreResult<()>
pub fn get_active_count(&self) -> usize
Trait Implementations§
Source§impl Debug for ExecutionTracker
impl Debug for ExecutionTracker
Auto Trait Implementations§
impl Freeze for ExecutionTracker
impl RefUnwindSafe for ExecutionTracker
impl Send for ExecutionTracker
impl Sync for ExecutionTracker
impl Unpin for ExecutionTracker
impl UnwindSafe for ExecutionTracker
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> 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