pub enum Status {
New,
Busy,
Waiting,
Ended,
RequestPause,
RequestResume,
RequestEnd,
Error(RuntimeError),
}
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(RuntimeError)
The thread has errored with provided RuntimeError
. This is a final state.
Trait Implementations§
impl Eq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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