pub struct BuildHeartbeatRequest {
pub build_id: u64,
pub worker_id: WorkerId,
pub hook_pid: Option<u32>,
pub remote_pgid_file: Option<String>,
pub phase: BuildHeartbeatPhase,
pub detail: Option<String>,
pub progress_counter: Option<u64>,
pub progress_percent: Option<f64>,
}Expand description
Request to update liveness/progress for an active build.
Fields§
§build_id: u64Active build identifier assigned by the daemon.
worker_id: WorkerIdWorker executing the build.
hook_pid: Option<u32>Hook process ID sending the heartbeat.
remote_pgid_file: Option<String>Remote file containing the process-group leader PID for cancellation.
phase: BuildHeartbeatPhaseCurrent build execution phase.
detail: Option<String>Optional human-readable progress detail.
progress_counter: Option<u64>Optional monotonic progress counter.
The hook increments this when it observes meaningful progress (phase transitions, new output, or richer progress signals).
progress_percent: Option<f64>Optional progress estimate in [0,100].
Trait Implementations§
Source§impl Clone for BuildHeartbeatRequest
impl Clone for BuildHeartbeatRequest
Source§fn clone(&self) -> BuildHeartbeatRequest
fn clone(&self) -> BuildHeartbeatRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BuildHeartbeatRequest
impl Debug for BuildHeartbeatRequest
Source§impl<'de> Deserialize<'de> for BuildHeartbeatRequest
impl<'de> Deserialize<'de> for BuildHeartbeatRequest
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 JsonSchema for BuildHeartbeatRequest
impl JsonSchema for BuildHeartbeatRequest
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for BuildHeartbeatRequest
impl RefUnwindSafe for BuildHeartbeatRequest
impl Send for BuildHeartbeatRequest
impl Sync for BuildHeartbeatRequest
impl Unpin for BuildHeartbeatRequest
impl UnsafeUnpin for BuildHeartbeatRequest
impl UnwindSafe for BuildHeartbeatRequest
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