Enum kernel::process::StoppedState
source · pub enum StoppedState {
Running,
Yielded,
YieldedFor(UpcallId),
}
Expand description
States a process could previously have been in when stopped.
This is public so external implementations of Process
can re-use these
process stopped states.
These are recorded so the process can be returned to its previous state when it is resumed.
Variants§
Running
The process was in the running state when it was stopped.
Yielded
The process was in the yielded state when it was stopped.
YieldedFor(UpcallId)
The process was in the yielded for state when it was stopped with a particular upcall it was waiting for.
Trait Implementations§
source§impl Clone for StoppedState
impl Clone for StoppedState
source§fn clone(&self) -> StoppedState
fn clone(&self) -> StoppedState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StoppedState
impl Debug for StoppedState
source§impl PartialEq for StoppedState
impl PartialEq for StoppedState
source§fn eq(&self, other: &StoppedState) -> bool
fn eq(&self, other: &StoppedState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for StoppedState
impl Eq for StoppedState
impl StructuralPartialEq for StoppedState
Auto Trait Implementations§
impl Freeze for StoppedState
impl RefUnwindSafe for StoppedState
impl Send for StoppedState
impl Sync for StoppedState
impl Unpin for StoppedState
impl UnwindSafe for StoppedState
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)