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
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