pub struct ReadyRef(pub Thread);
Expand description
A reference to a thread that is currently ready to run.
This type represents a thread that is in the scheduler’s ready queue and can be selected to run on a CPU.
Tuple Fields§
§0: Thread
Implementations§
Source§impl ReadyRef
impl ReadyRef
Sourcepub fn start_running(self) -> RunningRef
pub fn start_running(self) -> RunningRef
Convert this ready reference to a running reference.
This should be called when the scheduler selects this thread to run.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReadyRef
impl !RefUnwindSafe for ReadyRef
impl Send for ReadyRef
impl Sync for ReadyRef
impl Unpin for ReadyRef
impl !UnwindSafe for ReadyRef
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