pub struct ForkKernel {
pub kernel: ProcessFn,
pub frame_word_count: u32,
pub captures: Arc<[(u32, u32)]>,
pub disable_scopes: Arc<[(u32, String, u32)]>,
}Expand description
One fork-branch kernel a CompiledKernelProcess can mint a child from:
its entry point and its own frame size (see CompiledKernelProcess::new).
Fields§
§kernel: ProcessFn§frame_word_count: u32§captures: Arc<[(u32, u32)]>The variables the branch shares with the process that forks it: (parent frame word, child frame word) of each one’s cell pointer, copied into the child as it is minted.
disable_scopes: Arc<[(u32, String, u32)]>The branch’s (resume pc, label, exit pc) disable scopes: a disable
of a block nested in the branch from another process (LRM 9.6.2).
Trait Implementations§
Source§impl Clone for ForkKernel
impl Clone for ForkKernel
Auto Trait Implementations§
impl Freeze for ForkKernel
impl RefUnwindSafe for ForkKernel
impl Send for ForkKernel
impl Sync for ForkKernel
impl Unpin for ForkKernel
impl UnsafeUnpin for ForkKernel
impl UnwindSafe for ForkKernel
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