pub struct ComputeNode<F: IntegrateFloat> { /* private fields */ }Expand description
A compute node that can process work chunks
Implementations§
Source§impl<F: IntegrateFloat> ComputeNode<F>
impl<F: IntegrateFloat> ComputeNode<F>
Sourcepub fn status(&self) -> NodeStatus
pub fn status(&self) -> NodeStatus
Get node status
Sourcepub fn submit_work(&self, chunk: WorkChunk<F>) -> DistributedResult<()>
pub fn submit_work(&self, chunk: WorkChunk<F>) -> DistributedResult<()>
Submit a work chunk
Sourcepub fn process_all(&self) -> DistributedResult<Vec<ChunkResult<F>>>
pub fn process_all(&self) -> DistributedResult<Vec<ChunkResult<F>>>
Process all queued work
Sourcepub fn pending_work_count(&self) -> usize
pub fn pending_work_count(&self) -> usize
Get pending work count
Sourcepub fn collect_results(&self) -> Vec<ChunkResult<F>>
pub fn collect_results(&self) -> Vec<ChunkResult<F>>
Collect completed results
Auto Trait Implementations§
impl<F> !Freeze for ComputeNode<F>
impl<F> !RefUnwindSafe for ComputeNode<F>
impl<F> Send for ComputeNode<F>where
F: Send,
impl<F> Sync for ComputeNode<F>where
F: Send,
impl<F> Unpin for ComputeNode<F>where
F: Unpin,
impl<F> UnsafeUnpin for ComputeNode<F>
impl<F> !UnwindSafe for ComputeNode<F>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more