pub enum DistributedMessage<F: IntegrateFloat> {
Heartbeat {
node_id: NodeId,
status: NodeStatus,
timestamp: u64,
},
WorkAssignment {
chunk: WorkChunk<F>,
deadline: Option<Duration>,
},
WorkResult {
result: ChunkResult<F>,
},
BoundaryExchange {
source_chunk: ChunkId,
target_chunk: ChunkId,
boundary_data: BoundaryData<F>,
},
CheckpointRequest {
job_id: JobId,
checkpoint_id: u64,
},
CheckpointData {
job_id: JobId,
checkpoint_id: u64,
node_id: NodeId,
data: Vec<u8>,
},
NodeRegister {
node_id: NodeId,
address: SocketAddr,
capabilities: NodeCapabilities,
},
NodeDeregister {
node_id: NodeId,
reason: String,
},
JobCancel {
job_id: JobId,
reason: String,
},
SyncBarrier {
barrier_id: u64,
node_id: NodeId,
},
Ack {
message_id: u64,
status: AckStatus,
},
}Expand description
Message types for inter-node communication
Variants§
Heartbeat
Heartbeat message
WorkAssignment
Work assignment message
WorkResult
Work result message
Fields
§
result: ChunkResult<F>BoundaryExchange
Boundary data exchange
CheckpointRequest
Checkpoint request
CheckpointData
Checkpoint data
NodeRegister
Node registration
NodeDeregister
Node deregistration
JobCancel
Job cancellation
SyncBarrier
Synchronization barrier
Ack
Acknowledgment
Trait Implementations§
Source§impl<F: Clone + IntegrateFloat> Clone for DistributedMessage<F>
impl<F: Clone + IntegrateFloat> Clone for DistributedMessage<F>
Source§fn clone(&self) -> DistributedMessage<F>
fn clone(&self) -> DistributedMessage<F>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<F> Freeze for DistributedMessage<F>where
F: Freeze,
impl<F> RefUnwindSafe for DistributedMessage<F>where
F: RefUnwindSafe,
impl<F> Send for DistributedMessage<F>where
F: Send,
impl<F> Sync for DistributedMessage<F>where
F: Sync,
impl<F> Unpin for DistributedMessage<F>where
F: Unpin,
impl<F> UnsafeUnpin for DistributedMessage<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for DistributedMessage<F>where
F: UnwindSafe + RefUnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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