pub enum K2KControlMessage {
Start {
correlation_id: u64,
},
Stop {
reason: String,
},
GetStatus {
correlation_id: u64,
},
IterationComplete {
iteration: u64,
delta: f64,
worker_id: u64,
},
Converged {
iterations: u64,
final_delta: f64,
},
Error {
message: String,
code: u32,
},
Heartbeat {
sequence: u64,
timestamp_us: u64,
},
Barrier {
barrier_id: u64,
worker_id: u64,
},
}Expand description
Control messages for K2K coordination between kernels.
Variants§
Start
Signal to start processing.
Stop
Signal to stop processing.
GetStatus
Request current state/status.
IterationComplete
Signal iteration complete.
Fields
Converged
Signal convergence reached.
Error
Signal processing error.
Heartbeat
Heartbeat for liveness checking.
Barrier
Barrier synchronization.
Trait Implementations§
Source§impl Clone for K2KControlMessage
impl Clone for K2KControlMessage
Source§fn clone(&self) -> K2KControlMessage
fn clone(&self) -> K2KControlMessage
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 Freeze for K2KControlMessage
impl RefUnwindSafe for K2KControlMessage
impl Send for K2KControlMessage
impl Sync for K2KControlMessage
impl Unpin for K2KControlMessage
impl UnwindSafe for K2KControlMessage
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.