pub struct Node { /* private fields */ }Expand description
The process runtime one program runs against.
Implementations§
Source§impl Node
impl Node
Sourcepub fn new(config: NodeConfig) -> Arc<Self> ⓘ
pub fn new(config: NodeConfig) -> Arc<Self> ⓘ
A node with no processes.
Sourcepub fn run_until_idle(&self)
pub fn run_until_idle(&self)
Run every process until none can make progress. For hosts and tests;
a blue program waits with receive.
Sourcepub fn process_count(&self) -> usize
pub fn process_count(&self) -> usize
Processes the node still holds: queued, running, parked, or finished under a supervisor that may restart them. A finished unsupervised process is not among them; its interpreter has been dropped.
Auto Trait Implementations§
impl !Freeze for Node
impl !RefUnwindSafe for Node
impl !UnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
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