pub struct WorkerState {
pub runner_id: RunnerId,
pub current_invocation: Option<InvocationId>,
pub current_task: Option<TaskId>,
pub started_at: Option<Instant>,
pub last_result: Option<LastResult>,
pub invocations_completed: u64,
}Expand description
Tracks what a worker is currently doing (Phase 3C).
Fields§
§runner_id: RunnerId§current_invocation: Option<InvocationId>§current_task: Option<TaskId>§started_at: Option<Instant>§last_result: Option<LastResult>§invocations_completed: u64Implementations§
Trait Implementations§
Source§impl Clone for WorkerState
impl Clone for WorkerState
Source§fn clone(&self) -> WorkerState
fn clone(&self) -> WorkerState
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 WorkerState
impl RefUnwindSafe for WorkerState
impl Send for WorkerState
impl Sync for WorkerState
impl Unpin for WorkerState
impl UnsafeUnpin for WorkerState
impl UnwindSafe for WorkerState
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