pub struct Code {
pub defs: Vec<Spanned>,
pub bindings: Vec<(Arc<str>, Value)>,
pub start: Option<Spanned>,
}Expand description
A process’s program: definitions, data bindings, and the form it starts at.
Kept as trees, not as a compiled chunk, because a restart, a migration and
a crash trace all need the program again: the restart recompiles it, the
migration extends it, and the trace writes it down so blue replay needs
nothing but the trace.
Fields§
§defs: Vec<Spanned>(define (name params…) body…) forms, one per function reached.
bindings: Vec<(Arc<str>, Value)>Globals the child starts with: copied arguments and captured data.
start: Option<Spanned>The form the process evaluates; its value is the process’s result.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Code
impl !UnwindSafe for Code
impl Freeze for Code
impl Send for Code
impl Sync for Code
impl Unpin for Code
impl UnsafeUnpin for Code
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