Struct rustkernel::program::Program [−][src]
Expand description
This is what sits in state as long as the program is running
when a new request is made, it will check if the same cell has
been executed by checking cells which is a HashMap
Terms
- temp_dir: Whatever the OS temp directory is
- filename: Last executed filename so we can restart state if necessary
- cells: VS Code name for a notebook cell
Fields
temp_dir: Stringfilename: Stringcells: HashMap<u32, Cell>Implementations
Initial cell creation if it doesn’t exist yet Contents Use clone as we need to retain a pointer to data that will stick around after the request has finished
As the cells are implemented with a HashMap this is a fast lookup, Only updates what’s required
First sorts the hashmap by index into a vector, then writes the output with
rustkernel-start and rustkernel-end to determine which cell’s was executing