pub enum Status {
New,
Busy,
Waiting,
Ended,
RequestPause,
RequestResume,
RequestEnd,
Error(Error),
}Expand description
The threads status.
Variants
New
Thread is new, and hasn’t yet started. This is the initial status of all threads.
Busy
The thread is busy processing.
Waiting
The thread is waiting for more work to complete.
Ended
The thread is finished. This is a final state.
RequestPause
The thread has requested all threads pause.
RequestResume
The thread has requested all threads resume.
RequestEnd
The thread has requested all threads end.
Error(Error)
The thread has errored with provided Error. This is a final state.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl !UnwindSafe for Status
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more