pub enum ProcState {
Runnable,
Blocked,
Done(Value),
Exited(ExitReason),
}Expand description
No PartialEq: tatara_lisp_eval::Value does not implement it, and
wrapping it in a comparable shim here would invent an equality the
runtime does not define. Callers ask the questions they actually mean —
ProcState::is_runnable, ProcState::done_int.
Variants§
Runnable
Blocked
Parked inside receive with an empty mailbox. Becomes Runnable
again the moment a message arrives — a free wait, costing no fuel.
Done(Value)
Exited(ExitReason)
Implementations§
Source§impl ProcState
impl ProcState
pub fn is_runnable(&self) -> bool
pub fn is_blocked(&self) -> bool
pub fn is_done(&self) -> bool
Sourcepub fn done_int(&self) -> Option<i64>
pub fn done_int(&self) -> Option<i64>
The integer this process produced, if it finished with one.
pub fn exit_reason(&self) -> Option<&ExitReason>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ProcState
impl !UnwindSafe for ProcState
impl Freeze for ProcState
impl Send for ProcState
impl Sync for ProcState
impl Unpin for ProcState
impl UnsafeUnpin for ProcState
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