pub enum RescheduleReason {
Preempted,
Ticked,
Woken,
Started,
Terminated,
}Expand description
The reason a thread is being rescheduled. This can be used as a hint to the scheduling algorithm to determine where the thread should end up in the queue of pending threads.
Variants§
Preempted
The currently running thread has been preempted causing it to be re-added to the scheduler.
Ticked
A scheduler tick occurred causing the currently running thread to be re-added to the scheduler.
Woken
A currently waiting thread has been unblocked.
Started
A thread has been started and is being added to the scheduler for the first time.
Terminated
A thread has been terminated
Trait Implementations§
Source§impl Clone for RescheduleReason
impl Clone for RescheduleReason
impl Copy for RescheduleReason
Source§impl Debug for RescheduleReason
impl Debug for RescheduleReason
impl Eq for RescheduleReason
Source§impl PartialEq for RescheduleReason
impl PartialEq for RescheduleReason
impl StructuralPartialEq for RescheduleReason
Auto Trait Implementations§
impl Forget for RescheduleReason
impl Freeze for RescheduleReason
impl Move for RescheduleReason
impl RefUnwindSafe for RescheduleReason
impl Send for RescheduleReason
impl Sync for RescheduleReason
impl Unpin for RescheduleReason
impl UnsafeUnpin for RescheduleReason
impl UnwindSafe for RescheduleReason
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)