pub struct ProcessSlots<A> {
pub resume: A,
pub status: A,
pub delay: A,
}Expand description
State through which one process kernel exchanges control with the runtime.
A process kernel is a resumable function. On entry it reads resume to
find where it stopped; before returning it stores the next resume point,
a ProcessStatus code in status and, for a delay, the number of time
units in delay. All three are ordinary two-state state objects, so
checkpoints capture a suspended process.
Fields§
§resume: A§status: A§delay: AImplementations§
Trait Implementations§
Source§impl<A: Clone> Clone for ProcessSlots<A>
impl<A: Clone> Clone for ProcessSlots<A>
impl<A: Copy> Copy for ProcessSlots<A>
Source§impl<A: Debug> Debug for ProcessSlots<A>
impl<A: Debug> Debug for ProcessSlots<A>
Source§impl<'de, A> Deserialize<'de> for ProcessSlots<A>where
A: Deserialize<'de>,
impl<'de, A> Deserialize<'de> for ProcessSlots<A>where
A: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<A: Eq> Eq for ProcessSlots<A>
Source§impl<A: Hash> Hash for ProcessSlots<A>
impl<A: Hash> Hash for ProcessSlots<A>
Source§impl<A: PartialEq> PartialEq for ProcessSlots<A>
impl<A: PartialEq> PartialEq for ProcessSlots<A>
Source§impl<A> Serialize for ProcessSlots<A>where
A: Serialize,
impl<A> Serialize for ProcessSlots<A>where
A: Serialize,
impl<A: PartialEq> StructuralPartialEq for ProcessSlots<A>
Auto Trait Implementations§
impl<A> Freeze for ProcessSlots<A>where
A: Freeze,
impl<A> RefUnwindSafe for ProcessSlots<A>where
A: RefUnwindSafe,
impl<A> Send for ProcessSlots<A>where
A: Send,
impl<A> Sync for ProcessSlots<A>where
A: Sync,
impl<A> Unpin for ProcessSlots<A>where
A: Unpin,
impl<A> UnsafeUnpin for ProcessSlots<A>where
A: UnsafeUnpin,
impl<A> UnwindSafe for ProcessSlots<A>where
A: UnwindSafe,
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