pub struct DistributedNode { /* private fields */ }Expand description
Distributed simulation node
Implementations§
Source§impl DistributedNode
impl DistributedNode
Sourcepub fn new(config: DistributedConfig) -> Self
pub fn new(config: DistributedConfig) -> Self
Creates a new distributed node
Sourcepub fn config(&self) -> &DistributedConfig
pub fn config(&self) -> &DistributedConfig
Returns the node configuration
Sourcepub fn partition_work<T>(&self, items: Vec<T>) -> Vec<T>
pub fn partition_work<T>(&self, items: Vec<T>) -> Vec<T>
Partitions work for this node
Auto Trait Implementations§
impl !Freeze for DistributedNode
impl RefUnwindSafe for DistributedNode
impl Send for DistributedNode
impl Sync for DistributedNode
impl Unpin for DistributedNode
impl UnwindSafe for DistributedNode
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