pub struct DomainApplicationManager { /* private fields */ }Expand description
DomainApplicationManager — D&C §9.1.2.
Implementations§
Source§impl DomainApplicationManager
impl DomainApplicationManager
Sourcepub fn prepare_plan(plan: DeploymentPlan) -> Result<Self, PlanError>
pub fn prepare_plan(plan: DeploymentPlan) -> Result<Self, PlanError>
Constructor — D&C §9.1.1 preparePlan.
§Errors
PlanError if the plan is inconsistent (validation fails).
Sourcepub fn start_launch(&mut self) -> Result<DomainApplication, &'static str>
pub fn start_launch(&mut self) -> Result<DomainApplication, &'static str>
Spec D&C §9.1.2 startLaunch — prepares the instances and
requests resources on the nodes.
§Errors
Static string if the manager is not in the Prepared state.
Sourcepub fn finish_launch(
&mut self,
app: &mut DomainApplication,
) -> Result<(), &'static str>
pub fn finish_launch( &mut self, app: &mut DomainApplication, ) -> Result<(), &'static str>
Spec D&C §9.1.2 finishLaunch — completes the connection phase
and returns running as the final state.
§Errors
Static string if not in the Launched state.
Sourcepub fn destroy_application(
&mut self,
app: &mut DomainApplication,
) -> Result<(), &'static str>
pub fn destroy_application( &mut self, app: &mut DomainApplication, ) -> Result<(), &'static str>
Sourcepub fn plan(&self) -> &DeploymentPlan
pub fn plan(&self) -> &DeploymentPlan
Plan reference.
Trait Implementations§
Source§impl Clone for DomainApplicationManager
impl Clone for DomainApplicationManager
Source§fn clone(&self) -> DomainApplicationManager
fn clone(&self) -> DomainApplicationManager
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DomainApplicationManager
impl Debug for DomainApplicationManager
impl Eq for DomainApplicationManager
Source§impl PartialEq for DomainApplicationManager
impl PartialEq for DomainApplicationManager
Source§fn eq(&self, other: &DomainApplicationManager) -> bool
fn eq(&self, other: &DomainApplicationManager) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DomainApplicationManager
Auto Trait Implementations§
impl Freeze for DomainApplicationManager
impl RefUnwindSafe for DomainApplicationManager
impl Send for DomainApplicationManager
impl Sync for DomainApplicationManager
impl Unpin for DomainApplicationManager
impl UnsafeUnpin for DomainApplicationManager
impl UnwindSafe for DomainApplicationManager
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