pub struct DeploymentPlan {
pub targets: Vec<DeploymentTarget>,
pub action: DeployAction,
pub max_parallel: usize,
}Expand description
A deployment plan describing what to do.
Fields§
§targets: Vec<DeploymentTarget>Targets to deploy.
action: DeployActionAction to perform.
max_parallel: usizeMaximum parallel operations (fanout).
Implementations§
Source§impl DeploymentPlan
impl DeploymentPlan
Sourcepub fn new(action: DeployAction, max_parallel: usize) -> Self
pub fn new(action: DeployAction, max_parallel: usize) -> Self
Create a new empty deployment plan.
Sourcepub fn build_count(&self) -> usize
pub fn build_count(&self) -> usize
Number of targets that need building.
Sourcepub fn copy_count(&self) -> usize
pub fn copy_count(&self) -> usize
Number of targets that need closure copying.
Sourcepub fn target_count(&self) -> usize
pub fn target_count(&self) -> usize
Total number of targets.
Trait Implementations§
Source§impl Clone for DeploymentPlan
impl Clone for DeploymentPlan
Source§fn clone(&self) -> DeploymentPlan
fn clone(&self) -> DeploymentPlan
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 DeploymentPlan
impl RefUnwindSafe for DeploymentPlan
impl Send for DeploymentPlan
impl Sync for DeploymentPlan
impl Unpin for DeploymentPlan
impl UnsafeUnpin for DeploymentPlan
impl UnwindSafe for DeploymentPlan
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