pub struct StateReady { /* private fields */ }Implementations§
Source§impl StateReady
impl StateReady
pub fn initialize(path: impl AsRef<Path>) -> Result<Self>
pub fn path(&self) -> &Path
pub fn load(&self) -> Result<StateSnapshot>
pub fn save(&self, snapshot: &StateSnapshot) -> Result<()>
pub fn export_lock_file(&self) -> Result<LockFile>
pub fn update<F>(&self, update: F) -> Result<StateSnapshot>
pub fn get_resource_record( &self, id: &ResourceId, ) -> Result<Option<ResourceRecord>>
pub fn list_activation_records( &self, id: &ResourceId, ) -> Result<Vec<ActivationRecord>>
pub fn inspect_resource( &self, id: &ResourceId, store: Option<&StoreReady>, ) -> Result<ResourceInspectionReport>
pub fn build_analysis_index(&self) -> Result<StateAnalysisIndex>
pub fn inspect_resource_with_index( &self, id: &ResourceId, store: Option<&StoreReady>, index: &StateAnalysisIndex, ) -> ResourceInspectionReport
pub fn list_activation_conflicts( &self, ) -> Result<Vec<ActivationOwnershipConflict>>
pub fn activation_ownership_report(&self) -> Result<ActivationOwnershipReport>
pub fn activation_ownership_report_with_index( &self, index: &StateAnalysisIndex, ) -> ActivationOwnershipReport
pub fn list_store_references(&self) -> Result<Vec<StoreKeyReference>>
pub fn list_store_references_with_index( &self, index: &StateAnalysisIndex, ) -> Vec<StoreKeyReference>
pub fn protected_store_keys( &self, policy: StoreRetentionPolicy, ) -> Result<Vec<StoreKey>>
pub fn retained_store_references( &self, policy: StoreRetentionPolicy, ) -> Result<Vec<StoreKeyReference>>
pub fn plan_store_metadata_retention( &self, store: &StoreReady, policy: StoreRetentionPolicy, ) -> Result<StoreRetentionPlan>
pub fn plan_store_metadata_retention_reasoned( &self, store: &StoreReady, policy: StoreRetentionPolicy, ) -> Result<ReasonedStoreRetentionPlan>
pub fn plan_ownership_and_retention( &self, store: &StoreReady, policy: StoreRetentionPolicy, ) -> Result<OwnershipRetentionPlan>
pub fn plan_resource_state_repair( &self, id: &ResourceId, store: Option<&StoreReady>, ) -> Result<ResourceRepairPlan>
pub fn apply_resource_state_repair( &self, plan: &ResourceRepairPlan, ) -> Result<StateSnapshot>
pub fn capture_resource_state( &self, id: &ResourceId, ) -> Result<ResourceStateSnapshot>
pub fn restore_resource_state( &self, resource_state: &ResourceStateSnapshot, ) -> Result<StateSnapshot>
pub fn set_resource_lifecycle( &self, id: &ResourceId, lifecycle: ResourceLifecycle, ) -> Result<StateSnapshot>
pub fn patch_resource_record( &self, id: &ResourceId, patch: ResourceRecordPatch, ) -> Result<StateSnapshot>
pub fn ensure_resource_record( &self, id: ResourceId, selector: VersionSelector, ) -> Result<StateSnapshot>
pub fn upsert_resource_record( &self, record: ResourceRecord, ) -> Result<StateSnapshot>
pub fn upsert_resolved_resource( &self, resource: &ResolvedResource, patch: ResourceRecordPatch, ) -> Result<StateSnapshot>
pub fn upsert_resource<'a>( &self, upsert: impl IntoResourceUpsert<'a>, ) -> Result<StateSnapshot>
pub fn append_activation( &self, activation: ActivationRecord, ) -> Result<StateSnapshot>
pub fn record_activation( &self, id: &ResourceId, target: PathBuf, ) -> Result<StateSnapshot>
pub fn remove_resource_record(&self, id: &ResourceId) -> Result<StateSnapshot>
pub fn remove_activation_records( &self, id: &ResourceId, ) -> Result<StateSnapshot>
Trait Implementations§
Source§impl Clone for StateReady
impl Clone for StateReady
Source§fn clone(&self) -> StateReady
fn clone(&self) -> StateReady
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StateReady
impl RefUnwindSafe for StateReady
impl Send for StateReady
impl Sync for StateReady
impl Unpin for StateReady
impl UnsafeUnpin for StateReady
impl UnwindSafe for StateReady
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