pub struct NodeManager {
pub name: String,
/* private fields */
}Expand description
NodeManager — D&C §9.2.1.
Fields§
§name: StringNode name.
Implementations§
Source§impl NodeManager
impl NodeManager
Sourcepub fn prepare_plan(
&self,
instances: Vec<InstanceDeploymentDescription>,
) -> NodeApplicationManager
pub fn prepare_plan( &self, instances: Vec<InstanceDeploymentDescription>, ) -> NodeApplicationManager
Spec §9.2.1 preparePlan — creates a NodeApplicationManager
for a list of instances (those assigned to this node).
Sourcepub fn register_application(&mut self, plan_label: String, app: NodeApplication)
pub fn register_application(&mut self, plan_label: String, app: NodeApplication)
Registers a NodeApplication (the caller maintains this after
start_launch has been called).
Sourcepub fn active_plans(&self) -> Vec<String>
pub fn active_plans(&self) -> Vec<String>
Returns the active application plan labels on this node.
Sourcepub fn unregister_application(
&mut self,
plan_label: &str,
) -> Option<NodeApplication>
pub fn unregister_application( &mut self, plan_label: &str, ) -> Option<NodeApplication>
Pops a NodeApplication at tear-down.
Trait Implementations§
Source§impl Clone for NodeManager
impl Clone for NodeManager
Source§fn clone(&self) -> NodeManager
fn clone(&self) -> NodeManager
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 NodeManager
impl Debug for NodeManager
Source§impl Default for NodeManager
impl Default for NodeManager
Source§fn default() -> NodeManager
fn default() -> NodeManager
Returns the “default value” for a type. Read more
impl Eq for NodeManager
Source§impl PartialEq for NodeManager
impl PartialEq for NodeManager
Source§fn eq(&self, other: &NodeManager) -> bool
fn eq(&self, other: &NodeManager) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NodeManager
Auto Trait Implementations§
impl Freeze for NodeManager
impl RefUnwindSafe for NodeManager
impl Send for NodeManager
impl Sync for NodeManager
impl Unpin for NodeManager
impl UnsafeUnpin for NodeManager
impl UnwindSafe for NodeManager
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