docs/generated/contracts.mdgenerated from code
Reference · 1 min read
inline
Contracts: inline.
Read as
Source: crates/lvcs-runtime/src/inline.rs.
1/// sml's scheduler slot for a machine stepped where it is called: the2/// generated machine's `process_event_async` runs the event to completion3/// before it returns, and its completion is ready at once4/// ([`now`](super::now) reads it). Built by [`inlined`](super::inlined).5pub struct Inline<E, O, C = ()> {6 /// The machine's step slot.7 slot: Slot<E, O, C>,8}910/// Where an [`Inline`] machine's core lives: behind its lock, with the11/// check its last step handed over, and the slot each step runs through.12pub struct InlineCell<M, E, O, C = ()> {13 /// The generated machine's core, and its last check.14 core: Mutex<(M, C)>,15 /// The machine's step slot.16 slot: Slot<E, O, C>,17}