Skip to main content

UpdateCoordinator

Struct UpdateCoordinator 

Source
pub struct UpdateCoordinator<'a> { /* private fields */ }
Expand description

Coordinates provider, store, integrity, health and rollback boundaries.

Implementations§

Source§

impl<'a> UpdateCoordinator<'a>

Source

pub fn new( provider: &'a dyn UpdateProvider, store: &'a dyn ArtifactStore, health: &'a dyn ActivationHealthCheck, max_artifact_bytes: usize, ) -> UpdateResult<Self>

Creates a coordinator with an explicit artifact byte bound.

Source

pub fn new_with_authenticity( provider: &'a dyn UpdateProvider, store: &'a dyn ArtifactStore, health: &'a dyn ActivationHealthCheck, authenticity: &'a dyn ArtifactAuthenticityVerifier, max_artifact_bytes: usize, ) -> UpdateResult<Self>

Creates a coordinator with an explicit artifact authenticity policy.

Source

pub fn new_for_preparation( provider: &'a dyn UpdateProvider, store: &'a dyn ArtifactStore, authenticity: &'a dyn ArtifactAuthenticityVerifier, max_artifact_bytes: usize, ) -> UpdateResult<Self>

Creates a staging coordinator for process-level health verification.

Source

pub fn apply( &self, request: &UpdateRequest, runtime_version: &str, protocol_version: &str, ) -> UpdateResult<UpdateOutcome>

Applies an update using the production no-fault path.

Source

pub fn prepare( &self, request: &UpdateRequest, runtime_version: &str, protocol_version: &str, ) -> UpdateResult<UpdatePreparation>

Stages and activates an update without committing it.

An application parent uses this two-phase path when the candidate must be restarted and probed before ArtifactStore::commit or rollback.

Source

pub fn stage_candidate( &self, request: &UpdateRequest, runtime_version: &str, protocol_version: &str, ) -> UpdateResult<UpdateStaging>

Verifies and stages a candidate without changing the active artifact.

Source

pub fn apply_with_faults( &self, request: &UpdateRequest, runtime_version: &str, protocol_version: &str, faults: &dyn UpdateFaultInjector, ) -> UpdateResult<UpdateOutcome>

Applies an update while exposing deterministic lifecycle fault points.

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for UpdateCoordinator<'a>

§

impl<'a> !UnwindSafe for UpdateCoordinator<'a>

§

impl<'a> Freeze for UpdateCoordinator<'a>

§

impl<'a> Send for UpdateCoordinator<'a>

§

impl<'a> Sync for UpdateCoordinator<'a>

§

impl<'a> Unpin for UpdateCoordinator<'a>

§

impl<'a> UnsafeUnpin for UpdateCoordinator<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.