pub struct ControlState {
pub requested_worker: Option<String>,
pub requested_profile: Option<String>,
pub strict_remote_policy: bool,
pub queue_policy: Option<String>,
pub visibility_mode: Option<String>,
pub wait_timeout_ms: Option<u64>,
pub target_dir_policy: Option<String>,
}Expand description
Canonical control-state snapshot (env/flag-derived) so postmortems never
lose why a build was steered, queued, or made fail-closed. Mirrors the
explicit-control surface: requested_worker, requested_profile,
strict_remote_policy, queue_policy, visibility_mode, wait_timeout_ms,
target_dir_policy. All fields optional and omitted from the wire form when
unset, keeping the event compact.
Fields§
§requested_worker: Option<String>RCH_WORKER / --worker explicit worker request.
requested_profile: Option<String>RCH_PRESET / requested profile.
strict_remote_policy: boolRCH_REQUIRE_REMOTE / RCH_FORCE_REMOTE fail-closed remote policy.
queue_policy: Option<String>RCH_QUEUE_WHEN_BUSY queue policy.
visibility_mode: Option<String>RCH_VISIBILITY visibility mode.
wait_timeout_ms: Option<u64>Queue wait timeout in milliseconds.
target_dir_policy: Option<String>Worker-scoped target-dir policy.
Implementations§
Trait Implementations§
Source§impl Clone for ControlState
impl Clone for ControlState
Source§impl Debug for ControlState
impl Debug for ControlState
Source§impl Default for ControlState
impl Default for ControlState
Source§impl<'de> Deserialize<'de> for ControlState
impl<'de> Deserialize<'de> for ControlState
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
impl Eq for ControlState
Source§impl PartialEq for ControlState
impl PartialEq for ControlState
Source§impl Serialize for ControlState
impl Serialize for ControlState
impl StructuralPartialEq for ControlState
Auto Trait Implementations§
impl Freeze for ControlState
impl RefUnwindSafe for ControlState
impl Send for ControlState
impl Sync for ControlState
impl Unpin for ControlState
impl UnsafeUnpin for ControlState
impl UnwindSafe for ControlState
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.