Trait ncomm_core::node::Node
source · pub trait Node: Send {
// Required method
fn get_update_delay_us(&self) -> u128;
// Provided methods
fn start(&mut self) { ... }
fn update(&mut self) { ... }
fn shutdown(&mut self) { ... }
}Expand description
A Node represents a singular process that performs some singular purpose
Required Methods§
sourcefn get_update_delay_us(&self) -> u128
fn get_update_delay_us(&self) -> u128
Return the node’s update rate (in us)
Provided Methods§
sourcefn start(&mut self)
fn start(&mut self)
Complete the necessary setup functionalities for a Node.
Note: this method is called on Start for the executor or (if the executor was not formally started) before the executor begins updating nodes.