pub struct GovernanceState {
pub killed: bool,
pub budget_ceiling: Option<f64>,
pub kill_nonce: Option<String>,
pub budget_nonce: Option<String>,
}Expand description
Derived governance state for a running fleet loop.
Built by reducing the stream of CommanderDirectives received so far.
Fields§
§killed: boolIf true, the loop must stop immediately.
budget_ceiling: Option<f64>Active budget ceiling (USD), if any has been applied.
kill_nonce: Option<String>Nonce of the directive that produced killed == true (audit binding).
None when not killed, or after a resume clears the kill.
budget_nonce: Option<String>Nonce of the directive that set budget_ceiling (audit binding).
Trait Implementations§
Source§impl Clone for GovernanceState
impl Clone for GovernanceState
Source§fn clone(&self) -> GovernanceState
fn clone(&self) -> GovernanceState
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 GovernanceState
impl Debug for GovernanceState
Source§impl Default for GovernanceState
impl Default for GovernanceState
Source§fn default() -> GovernanceState
fn default() -> GovernanceState
Returns the “default value” for a type. Read more
Source§impl PartialEq for GovernanceState
impl PartialEq for GovernanceState
Source§fn eq(&self, other: &GovernanceState) -> bool
fn eq(&self, other: &GovernanceState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GovernanceState
Auto Trait Implementations§
impl Freeze for GovernanceState
impl RefUnwindSafe for GovernanceState
impl Send for GovernanceState
impl Sync for GovernanceState
impl Unpin for GovernanceState
impl UnsafeUnpin for GovernanceState
impl UnwindSafe for GovernanceState
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