pub struct TaskHeartbeatRequest {
pub task_id: String,
pub worker_id: String,
pub progress: Option<f32>,
pub status_message: Option<String>,
pub run_id: Option<String>,
}Fields§
§task_id: StringThe task ID from the TaskAssignment.
worker_id: StringUnique identifier for this worker instance. Must be stable for the duration of a task execution (same ID for start and all heartbeats). Used to detect duplicate task assignments — if a different worker_id sends a heartbeat for the same task, the response indicates ALREADY_CLAIMED.
progress: Option<f32>Optional progress indicator (0.0 to 1.0).
status_message: Option<String>Optional human-readable status message.
run_id: Option<String>The run ID (UUID) this task belongs to. Used for routing and recovery gating.
Implementations§
Source§impl TaskHeartbeatRequest
impl TaskHeartbeatRequest
Trait Implementations§
Source§impl Clone for TaskHeartbeatRequest
impl Clone for TaskHeartbeatRequest
Source§fn clone(&self) -> TaskHeartbeatRequest
fn clone(&self) -> TaskHeartbeatRequest
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 moreSource§impl Debug for TaskHeartbeatRequest
impl Debug for TaskHeartbeatRequest
Source§impl Default for TaskHeartbeatRequest
impl Default for TaskHeartbeatRequest
Source§impl<'de> Deserialize<'de> for TaskHeartbeatRequest
impl<'de> Deserialize<'de> for TaskHeartbeatRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for TaskHeartbeatRequest
impl Message for TaskHeartbeatRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for TaskHeartbeatRequest
impl PartialEq for TaskHeartbeatRequest
Source§impl Serialize for TaskHeartbeatRequest
impl Serialize for TaskHeartbeatRequest
impl StructuralPartialEq for TaskHeartbeatRequest
Auto Trait Implementations§
impl Freeze for TaskHeartbeatRequest
impl RefUnwindSafe for TaskHeartbeatRequest
impl Send for TaskHeartbeatRequest
impl Sync for TaskHeartbeatRequest
impl Unpin for TaskHeartbeatRequest
impl UnsafeUnpin for TaskHeartbeatRequest
impl UnwindSafe for TaskHeartbeatRequest
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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request