pub struct WorkerState<S> { /* private fields */ }Implementations§
Source§impl<S> WorkerState<S>where
S: WorkerTemplate,
impl<S> WorkerState<S>where
S: WorkerTemplate,
pub fn new(id: Uid, main_progress: MainProgress<S>) -> Self
pub fn update( &mut self, ch: impl Into<Option<usize>>, task: impl Into<Option<String>>, jobs: impl Into<Option<usize>>, status: impl Into<Option<WorkerStatus>>, )
pub fn channel_active(&self) -> impl Display
pub fn set_channel(&mut self, count: usize)
pub fn set_status(&mut self, status: WorkerStatus)
pub fn set_jobs(&mut self, count: usize)
pub fn set_task(&mut self, task: impl ToString)
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for WorkerState<S>where
S: Freeze,
impl<S> RefUnwindSafe for WorkerState<S>where
S: RefUnwindSafe,
impl<S> Send for WorkerState<S>where
S: Send,
impl<S> Sync for WorkerState<S>where
S: Sync,
impl<S> Unpin for WorkerState<S>where
S: Unpin,
impl<S> UnwindSafe for WorkerState<S>where
S: UnwindSafe,
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