#[non_exhaustive]pub struct AdaptivePersistedState {Show 14 fields
pub mode: AdaptiveMode,
pub confirmed_policy: PolicySnapshot,
pub next_candidate_version: u64,
pub revision: u64,
pub learning_updates: u64,
pub checkpoint_count: u64,
pub active_permission_granted: bool,
pub pending_active_proposal_id: Option<String>,
pub reconciliation_required: bool,
pub proposals: BTreeMap<String, PersistedProposalRecord>,
pub requests: BTreeMap<String, PersistedRequestRecord>,
pub feedbacks: BTreeMap<String, PersistedFeedbackRecord>,
pub expired_tombstones: BTreeSet<String>,
pub parameter_bounds: BTreeMap<String, ParameterBound>,
}Expand description
Serializable durable state of crate::adaptive::AdaptiveStateMachine (schema v7).
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.mode: AdaptiveModePersisted session mode.
confirmed_policy: PolicySnapshotConfirmed baseline/active policy snapshot.
next_candidate_version: u64Next monotonically allocated candidate policy version.
revision: u64Monotonic state revision counter.
learning_updates: u64Total consumed learning updates.
checkpoint_count: u64Total checkpoints created across proposals.
active_permission_granted: boolWhether active adaptation permission was explicitly granted.
pending_active_proposal_id: Option<String>Currently pending active proposal identifier, if any.
reconciliation_required: boolWhether reconciliation is required before issuing new active proposals.
proposals: BTreeMap<String, PersistedProposalRecord>Tracked proposals keyed by proposal_id.
requests: BTreeMap<String, PersistedRequestRecord>Idempotency cache keyed by request_id.
feedbacks: BTreeMap<String, PersistedFeedbackRecord>Feedback idempotency cache keyed by feedback_id.
expired_tombstones: BTreeSet<String>Expired request tombstones that must never be re-executed.
parameter_bounds: BTreeMap<String, ParameterBound>Optional per-parameter safety bounds enforced on proposals.
Trait Implementations§
Source§impl Clone for AdaptivePersistedState
impl Clone for AdaptivePersistedState
Source§impl Debug for AdaptivePersistedState
impl Debug for AdaptivePersistedState
Source§impl<'de> Deserialize<'de> for AdaptivePersistedState
impl<'de> Deserialize<'de> for AdaptivePersistedState
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 PartialEq for AdaptivePersistedState
impl PartialEq for AdaptivePersistedState
Source§impl Serialize for AdaptivePersistedState
impl Serialize for AdaptivePersistedState
impl StructuralPartialEq for AdaptivePersistedState
Auto Trait Implementations§
impl Forget for AdaptivePersistedState
impl Freeze for AdaptivePersistedStatewhere
*const LeafNode<String, f64> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, f64)>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, PersistedProposalRecord> is !null: Freeze,
PhantomData<Box<(String, PersistedProposalRecord)>>: Freeze,
*const LeafNode<String, PersistedRequestRecord> is !null: Freeze,
PhantomData<Box<(String, PersistedRequestRecord)>>: Freeze,
*const LeafNode<String, PersistedFeedbackRecord> is !null: Freeze,
PhantomData<Box<(String, PersistedFeedbackRecord)>>: Freeze,
*const LeafNode<String, SetValZST> is !null: Freeze,
PhantomData<Box<(String, SetValZST)>>: Freeze,
*const LeafNode<String, ParameterBound> is !null: Freeze,
PhantomData<Box<(String, ParameterBound)>>: Freeze,
impl Move for AdaptivePersistedState
impl RefUnwindSafe for AdaptivePersistedState
impl Send for AdaptivePersistedStatewhere
NodeRef<Owned, String, f64, LeafOrInternal>: Send,
BoxRaw<(String, f64)>: Send,
RawVecInner: Send,
NodeRef<Owned, String, PersistedProposalRecord, LeafOrInternal>: Send,
BoxRaw<(String, PersistedProposalRecord)>: Send,
NodeRef<Owned, String, PersistedRequestRecord, LeafOrInternal>: Send,
BoxRaw<(String, PersistedRequestRecord)>: Send,
NodeRef<Owned, String, PersistedFeedbackRecord, LeafOrInternal>: Send,
BoxRaw<(String, PersistedFeedbackRecord)>: Send,
NodeRef<Owned, String, SetValZST, LeafOrInternal>: Send,
BoxRaw<(String, SetValZST)>: Send,
NodeRef<Owned, String, ParameterBound, LeafOrInternal>: Send,
BoxRaw<(String, ParameterBound)>: Send,
impl Sync for AdaptivePersistedStatewhere
NodeRef<Owned, String, f64, LeafOrInternal>: Sync,
BoxRaw<(String, f64)>: Sync,
RawVecInner: Sync,
NodeRef<Owned, String, PersistedProposalRecord, LeafOrInternal>: Sync,
BoxRaw<(String, PersistedProposalRecord)>: Sync,
NodeRef<Owned, String, PersistedRequestRecord, LeafOrInternal>: Sync,
BoxRaw<(String, PersistedRequestRecord)>: Sync,
NodeRef<Owned, String, PersistedFeedbackRecord, LeafOrInternal>: Sync,
BoxRaw<(String, PersistedFeedbackRecord)>: Sync,
NodeRef<Owned, String, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(String, SetValZST)>: Sync,
NodeRef<Owned, String, ParameterBound, LeafOrInternal>: Sync,
BoxRaw<(String, ParameterBound)>: Sync,
impl Unpin for AdaptivePersistedStatewhere
*const LeafNode<String, f64> is !null: Unpin,
Box<(String, f64)>: Unpin,
*const u8 is !null: Unpin,
*const LeafNode<String, PersistedProposalRecord> is !null: Unpin,
Box<(String, PersistedProposalRecord)>: Unpin,
*const LeafNode<String, PersistedRequestRecord> is !null: Unpin,
Box<(String, PersistedRequestRecord)>: Unpin,
*const LeafNode<String, PersistedFeedbackRecord> is !null: Unpin,
Box<(String, PersistedFeedbackRecord)>: Unpin,
*const LeafNode<String, SetValZST> is !null: Unpin,
Box<(String, SetValZST)>: Unpin,
*const LeafNode<String, ParameterBound> is !null: Unpin,
Box<(String, ParameterBound)>: Unpin,
impl UnsafeUnpin for AdaptivePersistedStatewhere
*const LeafNode<String, f64> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, f64)>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, PersistedProposalRecord> is !null: UnsafeUnpin,
PhantomData<Box<(String, PersistedProposalRecord)>>: UnsafeUnpin,
*const LeafNode<String, PersistedRequestRecord> is !null: UnsafeUnpin,
PhantomData<Box<(String, PersistedRequestRecord)>>: UnsafeUnpin,
*const LeafNode<String, PersistedFeedbackRecord> is !null: UnsafeUnpin,
PhantomData<Box<(String, PersistedFeedbackRecord)>>: UnsafeUnpin,
*const LeafNode<String, SetValZST> is !null: UnsafeUnpin,
PhantomData<Box<(String, SetValZST)>>: UnsafeUnpin,
*const LeafNode<String, ParameterBound> is !null: UnsafeUnpin,
PhantomData<Box<(String, ParameterBound)>>: UnsafeUnpin,
impl UnwindSafe for AdaptivePersistedStatewhere
BTreeMap<String, f64>: UnwindSafe,
RawVecInner: UnwindSafe,
BTreeMap<String, PersistedProposalRecord>: UnwindSafe,
BTreeMap<String, PersistedRequestRecord>: UnwindSafe,
BTreeMap<String, PersistedFeedbackRecord>: UnwindSafe,
BTreeMap<String, SetValZST>: UnwindSafe,
BTreeMap<String, ParameterBound>: UnwindSafe,
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