#[non_exhaustive]pub struct ControlDirective {
pub step_id: u64,
pub l1_gate: L1RuntimeGate,
pub keep_steady: bool,
pub rule_patch: Option<RulePatchPayload>,
pub l2_prior: Option<L2PriorPayload>,
pub rollback_to_checkpoint: Option<String>,
pub checkpoint_uuid: Option<String>,
pub rollback_checkpoint_uuid: Option<String>,
pub active_params: Option<BTreeMap<String, f64>>,
}Available on crate feature
std only.Expand description
Control decisions returned to an external closed-loop host.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.step_id: u64Identifier of the step to which this directive applies.
l1_gate: L1RuntimeGateL1 gate decision governing whether a proposed update may proceed.
keep_steady: boolWhether the host should keep its current policy unchanged.
rule_patch: Option<RulePatchPayload>Optional L1 rule update proposed for the host.
l2_prior: Option<L2PriorPayload>Optional L2 prior and stability data for the host.
rollback_to_checkpoint: Option<String>Checkpoint identifier requested for rollback, when present.
checkpoint_uuid: Option<String>UUID of the checkpoint associated with this directive, when present.
rollback_checkpoint_uuid: Option<String>UUID of the checkpoint to restore during rollback, when present.
active_params: Option<BTreeMap<String, f64>>Current values of named active parameters, when supplied.
Trait Implementations§
Source§impl Clone for ControlDirective
impl Clone for ControlDirective
Source§impl Debug for ControlDirective
impl Debug for ControlDirective
Source§impl<'de> Deserialize<'de> for ControlDirective
impl<'de> Deserialize<'de> for ControlDirective
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
Auto Trait Implementations§
impl Forget for ControlDirective
impl Freeze for ControlDirectivewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<ParamPatch>: Freeze,
PhantomData<f64>: Freeze,
*const LeafNode<String, f64> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, f64)>>: Freeze,
impl Move for ControlDirective
impl RefUnwindSafe for ControlDirective
impl Send for ControlDirective
impl Sync for ControlDirective
impl Unpin for ControlDirective
impl UnsafeUnpin for ControlDirectivewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ParamPatch>: UnsafeUnpin,
PhantomData<f64>: UnsafeUnpin,
*const LeafNode<String, f64> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, f64)>>: UnsafeUnpin,
impl UnwindSafe for ControlDirective
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