pub struct ClientState {
pub id: TaskId,
pub label: Option<String>,
pub status: Option<TaskStatus>,
pub total: Option<u64>,
pub current: Option<u64>,
pub start_time: Instant,
pub last_update: Instant,
pub last_progress_update: Instant,
pub last_iter_duration: Option<Duration>,
}Fields§
§id: TaskIdOpaque unique identifier for internal store bookkeeping; never displayed.
label: Option<String>Human-readable label for display; may be unset until known.
status: Option<TaskStatus>Current lifecycle state of the task; may be unset if unknown.
total: Option<u64>Optional total units of work; None for unknown/indeterminate total.
current: Option<u64>Current completed units; None if not reported yet.
start_time: InstantMonotonic start time of the task, used for elapsed calculations.
last_update: InstantMonotonic time of the most recent update to this task.
last_progress_update: InstantMonotonic time of the most recent progress update (current tick).
last_iter_duration: Option<Duration>Duration of the most recently completed iteration.
Implementations§
Trait Implementations§
Source§impl Clone for ClientState
impl Clone for ClientState
Source§fn clone(&self) -> ClientState
fn clone(&self) -> ClientState
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 ClientState
impl RefUnwindSafe for ClientState
impl Send for ClientState
impl Sync for ClientState
impl Unpin for ClientState
impl UnwindSafe for ClientState
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<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