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 — fuer eine Liste von Instances
(die fuer diesen Node bestimmt sind) einen
NodeApplicationManager erzeugen.
Sourcepub fn register_application(&mut self, plan_label: String, app: NodeApplication)
pub fn register_application(&mut self, plan_label: String, app: NodeApplication)
Registriert eine NodeApplication (Caller pflegt das, nachdem
start_launch aufgerufen wurde).
Sourcepub fn active_plans(&self) -> Vec<String>
pub fn active_plans(&self) -> Vec<String>
Liefert die aktiven Application-Plan-Labels auf diesem Node.
Sourcepub fn unregister_application(
&mut self,
plan_label: &str,
) -> Option<NodeApplication>
pub fn unregister_application( &mut self, plan_label: &str, ) -> Option<NodeApplication>
Pop eine NodeApplication beim 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
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 Eq for NodeManager
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