pub struct ManagedGenerationSnapshot {
pub profile: ManagedProfileState,
pub generations: BTreeMap<ManagedGenerationId, ManagedGenerationRecord>,
}Fields§
§profile: ManagedProfileState§generations: BTreeMap<ManagedGenerationId, ManagedGenerationRecord>Implementations§
Source§impl ManagedGenerationSnapshot
impl ManagedGenerationSnapshot
pub fn empty(profile_id: ModelStoreProfileId) -> Self
pub fn validate(&self) -> Result<(), GenerationTransitionError>
pub fn register_inactive( &self, generation_id: ManagedGenerationId, manifest_id: impl Into<String>, ) -> Result<Self, GenerationTransitionError>
pub fn advance_startup_epoch(&self) -> Result<Self, GenerationTransitionError>
pub fn activate( &self, generation_id: &ManagedGenerationId, ) -> Result<Self, GenerationTransitionError>
pub fn observe_current_for_startup_validation( &self, loaded_generation_id: &ManagedGenerationId, ) -> Result<StartupValidationEvidence, GenerationTransitionError>
pub fn validate_current_after_startup( &self, evidence: &StartupValidationEvidence, ) -> Result<Self, GenerationTransitionError>
pub fn rollback_invalid_current( &self, previous_verified: bool, ) -> Result<Self, GenerationTransitionError>
Sourcepub fn release_previous_after_startup_validation(
&self,
) -> Result<Self, GenerationTransitionError>
pub fn release_previous_after_startup_validation( &self, ) -> Result<Self, GenerationTransitionError>
Release the rollback generation only after the current generation has durably survived later-startup validation.
Trait Implementations§
Source§impl Clone for ManagedGenerationSnapshot
impl Clone for ManagedGenerationSnapshot
Source§impl Debug for ManagedGenerationSnapshot
impl Debug for ManagedGenerationSnapshot
impl Eq for ManagedGenerationSnapshot
impl StructuralPartialEq for ManagedGenerationSnapshot
Auto Trait Implementations§
impl Freeze for ManagedGenerationSnapshot
impl RefUnwindSafe for ManagedGenerationSnapshot
impl Send for ManagedGenerationSnapshot
impl Sync for ManagedGenerationSnapshot
impl Unpin for ManagedGenerationSnapshot
impl UnsafeUnpin for ManagedGenerationSnapshot
impl UnwindSafe for ManagedGenerationSnapshot
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