pub struct ApplicationInstallationCampaignState { /* private fields */ }Expand description
One canonical durable plan-plus-campaign record.
The complete exact plan is retained with stage evidence so restart recovery never infers intent from whichever application files happen to be present. This value contains no bearer credentials, seed values, or host paths.
Implementations§
Source§impl ApplicationInstallationCampaignState
impl ApplicationInstallationCampaignState
Sourcepub fn capture(
campaign: &ApplicationInstallationCampaign,
plan: &ApplicationInstallationPlan,
) -> Result<Self, InstallationCampaignError>
pub fn capture( campaign: &ApplicationInstallationCampaign, plan: &ApplicationInstallationPlan, ) -> Result<Self, InstallationCampaignError>
Captures one fully validated canonical durable state record.
Sourcepub fn decode_canonical(bytes: &[u8]) -> Result<Self, InstallationCampaignError>
pub fn decode_canonical(bytes: &[u8]) -> Result<Self, InstallationCampaignError>
Strictly decodes, canonicalizes, and semantically revalidates durable state.
Sourcepub const fn plan(&self) -> &ApplicationInstallationPlan
pub const fn plan(&self) -> &ApplicationInstallationPlan
Exact immutable plan recovered with the campaign.
Sourcepub const fn campaign(&self) -> &ApplicationInstallationCampaign
pub const fn campaign(&self) -> &ApplicationInstallationCampaign
Exact resumable campaign state.
Sourcepub fn canonical_bytes(&self) -> &[u8] ⓘ
pub fn canonical_bytes(&self) -> &[u8] ⓘ
Canonical durable bytes.
Sourcepub fn into_parts(
self,
) -> (ApplicationInstallationPlan, ApplicationInstallationCampaign)
pub fn into_parts( self, ) -> (ApplicationInstallationPlan, ApplicationInstallationCampaign)
Consumes the record into its exact plan and campaign state.
Trait Implementations§
impl Eq for ApplicationInstallationCampaignState
impl StructuralPartialEq for ApplicationInstallationCampaignState
Auto Trait Implementations§
impl Freeze for ApplicationInstallationCampaignState
impl RefUnwindSafe for ApplicationInstallationCampaignState
impl Send for ApplicationInstallationCampaignState
impl Sync for ApplicationInstallationCampaignState
impl Unpin for ApplicationInstallationCampaignState
impl UnsafeUnpin for ApplicationInstallationCampaignState
impl UnwindSafe for ApplicationInstallationCampaignState
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